On Sat, 17 Jun 2000, Philipp wrote:
> Since I have entered the following two commands my keyboard doesn't
> function well:
> xmodmap -e "keycode 107=0xfff"
> xmodmap -e "keycode 22=0xff08"
> My Del- and my Backspace-key are corrupt.
> Can I repair my keyboard??
xmodmap -e "keycode 107=0xffff"
4 "F"'s instead of 3?
The backspace and delete keys are nontrivial business.
I know of at least two different ways to handle backspace and delete if
xmodmap is set like stated before:
1. The xfree86 way:
Backspace generates ^H , delete generates DEL (ASCII 127)
2. The console and xterm-debian way:
Backspace generates DEL, delete generates ESC [ 3 ~
Solve problems with possibility 1:
Try
stty erase ^H
Your terminfo file (type "infocmp" at the prompt) should have
kbs=^H, kdch1=\177
and there should be no relevant *VT100.Translations in "xrdb -query"
The way to get possibility 2 in X:
stty erase ^?
terminfo has
kbs=\177, kdch1=\E[3~
and the following in .Xresources
*VT100.Translations: #override ~Shift ~Ctrl ~Meta \
<Key>BackSpace: string("\177")\n\
~Shift ~Ctrl ~Meta \
<Key>Delete: string("\033[3~")\n\
Bart