Table of Contents [hide]
The chain ∞
Backspace works like so:
stty erase ^?
- Kernel
-
keyboard mapping:
- either /etc/default.keytab + loadkeys + /etc/rc.d/boot
- or /etc/sysconfig/keyboard + loadkeys + /etc/rc.d/init.d/keytable
-
console - loadkeys mykeys.map
- shell
-
x -
xmodmap mykeys.xmap
(Xmodmap)- terminal
- shell
shells ∞
In Zsh, ^v <key>
will show its code.
In Bash, ~/.inputrc
is used.
set editing-mode emacs "\e[3~":delete-char
x ∞
Compile-time key definitions:
/usr/include/X11/keysymdef.h
commands to know:
xmodmap
(Xmodmap)-
xrdb -merge
Backspace key to generate a BackSpace:
xmodmap -e "keycode 22 = BackSpace"
The delete
key to generate a Delete:
xmodmap -e "keycode 107 = Delete"
You can toss stuff at xterm and immediately use it, like so:
echo "XTerm*ttyModes: erase ^?" | xrdb -merge
Articles ∞
- https://web.archive.org/web/20181022000151/http://ibb.net:80/~anne/keyboard.html
- https://web.archive.org/web/20180829032412/http://www.ibb.net:80/~anne/keyboard/keyboardprev.html - has kernel configuration mapping info that should be useful.
- https://tldp.org/HOWTO/Keyboard-and-Console-HOWTO.html [ 1 ] was https://web.archive.org/web/20191003054231/http://tldp.org/HOWTO/Keyboard-and-Console-HOWTO-5.html
Footnotes
Last updated 2020-11-19 at 23:01:00