1
# [vt100.keytab] Konsole Keyboard Table (VT100 keys)
3
# --------------------------------------------------------------
5
keyboard "vt100 (historical)"
7
# --------------------------------------------------------------
9
# This configuration table allows to customize the
10
# meaning of the keys.
12
# The syntax is that each entry has the form :
14
# "key" Keyname { ("+"|"-") Modename } ":" (String|Operation)
16
# Keynames are those defined in <qnamespace.h> with the
17
# "Qt::Key_" removed. (We'd better insert the list here)
25
# The VT100 emulation has two modes that can affect the
26
# sequences emitted by certain keys. These modes are
27
# under control of the client program.
29
# - Newline : effects Return and Enter key.
30
# - Application : effects Up and Down key.
32
# - Ansi : effects Up and Down key (This is for VT52, really).
43
# If the key is not found here, the text of the
44
# key event as provided by QT is emitted, possibly
45
# preceeded by ESC if the Alt key is pressed.
47
# --------------------------------------------------------------
52
# VT100 can add an extra \n after return.
53
# The NewLine mode is set by an escape sequence.
55
key Return-NewLine : "\r"
56
key Return+NewLine : "\r\n"
58
# Some desperately try to save the ^H.
60
key Backspace : "\x7f"
63
# These codes are for the VT52 mode of VT100
64
# The Ansi mode (i.e. VT100 mode) is set by
67
key Up -Shift-Ansi : "\EA"
68
key Down -Shift-Ansi : "\EB"
69
key Right-Shift-Ansi : "\EC"
70
key Left -Shift-Ansi : "\ED"
72
# VT100 emits a mode bit together
73
# with the arrow keys.The AppCuKeys
74
# mode is set by an escape sequence.
76
key Up -Shift+Ansi+AppCuKeys : "\EOA"
77
key Down -Shift+Ansi+AppCuKeys : "\EOB"
78
key Right-Shift+Ansi+AppCuKeys : "\EOC"
79
key Left -Shift+Ansi+AppCuKeys : "\EOD"
81
key Up -Shift+Ansi-AppCuKeys : "\E[A"
82
key Down -Shift+Ansi-AppCuKeys : "\E[B"
83
key Right-Shift+Ansi-AppCuKeys : "\E[C"
84
key Left -Shift+Ansi-AppCuKeys : "\E[D"
86
# function keys (FIXME: make pf1-pf4)
105
key Prior -Shift : "\E[5~"
106
key Next -Shift : "\E[6~"
107
key Insert-Shift : "\E[2~"
109
# Keypad-Enter. See comment on Return above.
111
key Enter+NewLine : "\r\n"
112
key Enter-NewLine : "\r"
114
key Space +Control : "\x00"
116
# some of keys are used by konsole.
118
key Up +Shift : scrollLineUp
119
key Prior +Shift : scrollPageUp
120
key Down +Shift : scrollLineDown
121
key Next +Shift : scrollPageDown
123
key ScrollLock : scrollLock
126
#----------------------------------------------------------
128
# keypad characters as offered by Qt
129
# cannot be recognized as such.
131
#----------------------------------------------------------
133
# Following other strings as emitted by konsole.