>>I'm trying to get my backspace key to register as ASCII DEL (^?) a la
>>http://www.ibb.net/~anne/keyboard.html. I have edited my terminfo so
>>that infocmp reports "kbs=\177", but using the "C-v trick" or cat I
>>always get "^H" for [Backspace].
>>I've tried from several different situations, cygwin locally, cygwin
>>ssh'ed into Solaris and Linux. Emacs eterm (term-mode) on Solaris
>>(remotely via X using Exceed). All produce identical results. In
>>each setup terminfo has kbs=\177. I usually use bash, but I also
>>tried switching to ksh and zsh and got the same results (so I don't
>>think it is any shell bindings I have set). $TERM looks right. I
>>have stty erase set to ^?. Is there anything else involved that
>>requires configuring or that could be overriding the terminfo settings?
> terminfo tells applications how to deal with characters as they're
> entered on the keyboard; it doesn't (and can't) affect the characters
> sent when you type a particular key.
> Similarly, "stty erase ^?" tells applications to treat the '\177'
> character as erase, but doesn't affect how you enter that character.
> You'll need to do something on a lower level, probably in your
> terminal emulator. Some versions of xterm have a "Backarrow Key
> (BS/DEL)" option in the main menu; you can set it either manually in
> that menu or via an X resource. You may also be able to use xmodmap.
> (As far as the "Consistent BackSpace and Delete Configuration" web
> page is concerned, I don't mind if system implementers do whatever
> they like -- as long as I can override the default configuration to
> make the Backspace key send "^H", not "^?".)
Which key is BackSpace key?
Key labeled /---| with X inside?
If you run xkeycaps, you can choose:
101 key, wide Delete, short Enter
101 key, wide Delete, tall Enter
Linux encijan.aster.si 2.4.20-19.9 #1 Tue Jul 15 17:18:13 EDT 2003 i686
i686 i386 GNU/Linux
KeyRelease event, serial 24, synthetic NO, window 0x2600001,
root 0x3f, subw 0x0, time 70074875, (489,822), root:(494,845),
state 0x0, keycode 22 (keysym 0xff08, BackSpace), same_screen YES,
XLookupString gives 1 bytes: "
OSF1 gin.aster.si V5.1 2650 alpha
KeyRelease event, serial 22, synthetic NO, window 0x4400001,
root 0x25, subw 0x0, time 1041256121, (-525,128), root:(379,347),
state 0x0, keycode 102 (keysym 0xffff, Delete), same_screen YES,
XLookupString gives 1 characters: ""
Same keyboard. ;-)
Nade Ovcakove 1 tel: +386 (1) 5894-329
1000 Ljubljana, Slovenia http://www.snt.si