mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-19 04:30:44 +00:00
197 lines
5.4 KiB
Plaintext
197 lines
5.4 KiB
Plaintext
# [README.xterm.Keytab] Xterm Keyboard Table
|
|
#
|
|
# To customize your keyboard, copy this file to something
|
|
# ending with .keytab and change it to meet you needs.
|
|
# Please read the README.KeyTab and the README.keyboard
|
|
# in this case.
|
|
#
|
|
# --------------------------------------------------------------
|
|
|
|
keyboard "Xterm"
|
|
|
|
# common keys
|
|
|
|
key Escape : "\E"
|
|
|
|
key Tab -Shift : "\t"
|
|
key Tab +Shift+Ansi : "\E[Z"
|
|
key Tab +Shift-Ansi : "\t"
|
|
key Backtab +Ansi : "\E[Z"
|
|
key Backtab -Ansi : "\t"
|
|
|
|
key Return-Shift-NewLine : "\r"
|
|
key Return-Shift+NewLine : "\r\n"
|
|
|
|
key Return+Shift : "\EOM"
|
|
|
|
# Backspace and Delete codes are preserving CTRL-H.
|
|
|
|
key Backspace : "\x7f"
|
|
|
|
# Arrow keys in VT52 mode
|
|
|
|
key Up -Shift-Ansi : "\EA"
|
|
key Down -Shift-Ansi : "\EB"
|
|
key Right-Shift-Ansi : "\EC"
|
|
key Left -Shift-Ansi : "\ED"
|
|
|
|
# Arrow keys in ANSI mode with Application - and Normal Cursor Mode)
|
|
|
|
key Up -Shift-AnyMod+Ansi+AppCuKeys : "\EOA"
|
|
key Down -Shift-AnyMod+Ansi+AppCuKeys : "\EOB"
|
|
key Right -Shift-AnyMod+Ansi+AppCuKeys : "\EOC"
|
|
key Left -Shift-AnyMod+Ansi+AppCuKeys : "\EOD"
|
|
|
|
key Up -Shift-AnyMod+Ansi-AppCuKeys : "\E[A"
|
|
key Down -Shift-AnyMod+Ansi-AppCuKeys : "\E[B"
|
|
key Right -Shift-AnyMod+Ansi-AppCuKeys : "\E[C"
|
|
key Left -Shift-AnyMod+Ansi-AppCuKeys : "\E[D"
|
|
|
|
key Up +AnyMod+Ansi : "\E[1;*A"
|
|
key Down +AnyMod+Ansi : "\E[1;*B"
|
|
key Right +AnyMod+Ansi : "\E[1;*C"
|
|
key Left +AnyMod+Ansi : "\E[1;*D"
|
|
|
|
# Keypad keys with NumLock ON
|
|
# (see "Numeric Keypad" section at http://www.nw.com/nw/WWW/products/wizcon/vt100.html )
|
|
#
|
|
# Not enabled for now because it breaks the keypad in Vim.
|
|
#
|
|
#key 0 +KeyPad+AppKeyPad : "\EOp"
|
|
#key 1 +KeyPad+AppKeyPad : "\EOq"
|
|
#key 2 +KeyPad+AppKeyPad : "\EOr"
|
|
#key 3 +KeyPad+AppKeyPad : "\EOs"
|
|
#key 4 +KeyPad+AppKeyPad : "\EOt"
|
|
#key 5 +KeyPad+AppKeyPad : "\EOu"
|
|
#key 6 +KeyPad+AppKeyPad : "\EOv"
|
|
#key 7 +KeyPad+AppKeyPad : "\EOw"
|
|
#key 8 +KeyPad+AppKeyPad : "\EOx"
|
|
#key 9 +KeyPad+AppKeyPad : "\EOy"
|
|
#key + +KeyPad+AppKeyPad : "\EOl"
|
|
#key - +KeyPad+AppKeyPad : "\EOm"
|
|
#key . +KeyPad+AppKeyPad : "\EOn"
|
|
#key * +KeyPad+AppKeyPad : "\EOM"
|
|
#key Enter +KeyPad+AppKeyPad : "\r"
|
|
|
|
# Keypad keys with NumLock Off
|
|
key Up -Shift+Ansi+AppCuKeys+KeyPad : "\EOA"
|
|
key Down -Shift+Ansi+AppCuKeys+KeyPad : "\EOB"
|
|
key Right -Shift+Ansi+AppCuKeys+KeyPad : "\EOC"
|
|
key Left -Shift+Ansi+AppCuKeys+KeyPad : "\EOD"
|
|
|
|
key Up -Shift+Ansi-AppCuKeys+KeyPad : "\E[A"
|
|
key Down -Shift+Ansi-AppCuKeys+KeyPad : "\E[B"
|
|
key Right -Shift+Ansi-AppCuKeys+KeyPad : "\E[C"
|
|
key Left -Shift+Ansi-AppCuKeys+KeyPad : "\E[D"
|
|
|
|
key Home +AppCuKeys+KeyPad : "\EOH"
|
|
key End +AppCuKeys+KeyPad : "\EOF"
|
|
key Home -AppCuKeys+KeyPad : "\E[H"
|
|
key End -AppCuKeys+KeyPad : "\E[F"
|
|
|
|
key Insert +KeyPad : "\E[2~"
|
|
key Delete +KeyPad : "\E[3~"
|
|
key Prior -Shift+KeyPad : "\E[5~"
|
|
key Next -Shift+KeyPad : "\E[6~"
|
|
|
|
# other grey PC keys
|
|
|
|
key Enter+NewLine : "\r\n"
|
|
key Enter-NewLine : "\r"
|
|
|
|
key Home -AnyMod-AppCuKeys : "\E[H"
|
|
key End -AnyMod-AppCuKeys : "\E[F"
|
|
key Home -AnyMod+AppCuKeys : "\EOH"
|
|
key End -AnyMod+AppCuKeys : "\EOF"
|
|
key Home +AnyMod : "\E[1;*H"
|
|
key End +AnyMod : "\E[1;*F"
|
|
|
|
key Insert -AnyMod : "\E[2~"
|
|
key Delete -AnyMod : "\E[3~"
|
|
key Insert +AnyMod : "\E[2;*~"
|
|
key Delete +AnyMod : "\E[3;*~"
|
|
|
|
key Prior -Shift-AnyMod : "\E[5~"
|
|
key Next -Shift-AnyMod : "\E[6~"
|
|
key Prior -Shift+AnyMod : "\E[5;*~"
|
|
key Next -Shift+AnyMod : "\E[6;*~"
|
|
|
|
# Function keys
|
|
key F1 -AnyMod : "\EOP"
|
|
key F2 -AnyMod : "\EOQ"
|
|
key F3 -AnyMod : "\EOR"
|
|
key F4 -AnyMod : "\EOS"
|
|
key F5 -AnyMod : "\E[15~"
|
|
key F6 -AnyMod : "\E[17~"
|
|
key F7 -AnyMod : "\E[18~"
|
|
key F8 -AnyMod : "\E[19~"
|
|
key F9 -AnyMod : "\E[20~"
|
|
key F10 -AnyMod : "\E[21~"
|
|
key F11 -AnyMod : "\E[23~"
|
|
key F12 -AnyMod : "\E[24~"
|
|
|
|
key F1 +AnyMod : "\E[1;*P"
|
|
key F2 +AnyMod : "\E[1;*Q"
|
|
key F3 +AnyMod : "\E[1;*R"
|
|
key F4 +AnyMod : "\E[1;*S"
|
|
key F5 +AnyMod : "\E[15;*~"
|
|
key F6 +AnyMod : "\E[17;*~"
|
|
key F7 +AnyMod : "\E[18;*~"
|
|
key F8 +AnyMod : "\E[19;*~"
|
|
key F9 +AnyMod : "\E[20;*~"
|
|
key F10 +AnyMod : "\E[21;*~"
|
|
key F11 +AnyMod : "\E[23;*~"
|
|
key F12 +AnyMod : "\E[24;*~"
|
|
|
|
# Work around dead keys
|
|
|
|
key Space +Control : "\x00"
|
|
|
|
key At +Control : "\x00"
|
|
|
|
key A +Control : "\x01"
|
|
key B +Control : "\x02"
|
|
key C +Control : "\x03"
|
|
key D +Control : "\x04"
|
|
key E +Control : "\x05"
|
|
key F +Control : "\x06"
|
|
key G +Control : "\x07"
|
|
key H +Control : "\x08"
|
|
key I +Control : "\x09"
|
|
key J +Control : "\x0a"
|
|
key K +Control : "\x0b"
|
|
key L +Control : "\x0c"
|
|
key M +Control : "\x0d"
|
|
key N +Control : "\x0e"
|
|
key O +Control : "\x0f"
|
|
key P +Control : "\x10"
|
|
key Q +Control : "\x11"
|
|
key R +Control : "\x12"
|
|
key S +Control : "\x13"
|
|
key T +Control : "\x14"
|
|
key U +Control : "\x15"
|
|
key V +Control : "\x16"
|
|
key W +Control : "\x17"
|
|
key X +Control : "\x18"
|
|
key Y +Control : "\x19"
|
|
key Z +Control : "\x1a"
|
|
|
|
key BracketLeft +Control : "\x1b"
|
|
key Backslash +Control : "\x1c"
|
|
key BracketRight +Control : "\x1d"
|
|
key AsciiCircum +Control : "\x1e"
|
|
key _ +Control : "\x1f"
|
|
|
|
key Question +Control : "\x7f"
|
|
|
|
# Some keys are used by konsole to cause operations.
|
|
# The scroll* operations refer to the history buffer.
|
|
|
|
key Up +Shift-AppScreen : scrollLineUp
|
|
key Prior +Shift-AppScreen : scrollPageUp
|
|
key Down +Shift-AppScreen : scrollLineDown
|
|
key Next +Shift-AppScreen : scrollPageDown
|
|
|
|
key ScrollLock : scrollLock
|
|
|