: Using RH5.1 and /bin/ksh as my login shell.
: I have the following in my .profile
: stty erase "^H" intr "^?" kill "^U"
: because I want the <Backspace> key to erase the previous char, the ^U key
: to erase the current command line and the <Del> key to abort the
: command-line.
: This is working fine with X i.e. when I do 'xterm -ls'.
: But when I Ctrl-Alt-Fn out to a linux console, things get messed up.
: The Backspace key is producing ^? which aborts my command line. Ctrl-U is
: working fine. Finally, the Del key is producing ^[[3~.
: 'infocmp linux' tells me that these keys are indeed expected to produce
: these keycodes. Why is this so? How can I change it? I tried changing the
: terminfo database and 'tic'ed it to $HOME/.terminfo but that didnt help.
: Didnt expect it to, since terminfo merely _documents_ what keycodes are
: generated for the benefit of other applications.
: Is ther a way similar to 'xterm*vt100*translations' that I can control
: which keys generate which keycodes?
The console is emulating vt100 which is doing it correctly. If you want to
change the keyboard binding of the virtual console, you use the program
"loadkeys". It is similar to xmodmap.