bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CDK - backspace not working


From: Thomas Dickey
Subject: Re: CDK - backspace not working
Date: Sun, 29 Mar 2009 11:35:03 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

On Sat, Mar 28, 2009 at 09:12:54AM -0700, TheLonelyStar wrote:
> Sorry for the late reply.
> Well, as you suspected: KEY_BACKSPACE also does not work in normal ncurse
> programs.
> 
> The data:
> I use rxvt-unicode
> TERM=rxvt
> 
> the infocmp output is appended below.
> If my terminal is sending the wrong character, can I somehow tell cdk to
> reeinterpret that character?
> 
> Thanks!
> Nathan
> 
> #     Reconstructed via infocmp from file: /usr/share/terminfo/r/rxvt
> rxvt|rxvt terminal emulator (X Window System),
...
>       kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D,
                  ^^^^^^ (KEY_BACKSPACE)
>       kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~,
                                            ^^^^^^^^^^^ (KEY_DC)

You're probably seeing ^H (8) where ^? (127) is sent.

It's simpler to change the terminal to match the terminfo.

rxvt reads a resource file, which includes a "backspacekey" setting.
You could set that...

rxvt can also switch between the two flavors of "backspace" by holding
down the control key while pressing the "Backspace" key.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]