summaryrefslogtreecommitdiff
path: root/etc/keytabs
Unidiff
Diffstat (limited to 'etc/keytabs') (more/less context) (ignore whitespace changes)
-rw-r--r--etc/keytabs/linux.keytab136
-rw-r--r--etc/keytabs/vt100.keytab136
2 files changed, 272 insertions, 0 deletions
diff --git a/etc/keytabs/linux.keytab b/etc/keytabs/linux.keytab
new file mode 100644
index 0000000..3246ce0
--- a/dev/null
+++ b/etc/keytabs/linux.keytab
@@ -0,0 +1,136 @@
1# [linux.keytab] Konsole Keyboard Table (Linux console keys)
2#
3# --------------------------------------------------------------
4
5keyboard "linux console" # NOT TESTED, MAY NEED SOME CLEANUPS
6
7# --------------------------------------------------------------
8#
9# This configuration table allows to customize the
10# meaning of the keys.
11#
12# The syntax is that each entry has the form :
13#
14# "key" Keyname { ("+"|"-") Modename } ":" (String|Operation)
15#
16# Keynames are those defined in <qnamespace.h> with the
17# "Qt::Key_" removed. (We'd better insert the list here)
18#
19# Mode names are :
20#
21# - Shift
22# - Alt
23# - Control
24#
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.
28#
29# - Newline : effects Return and Enter key.
30# - Application : effects Up and Down key.
31#
32# - Ansi : effects Up and Down key (This is for VT52, really).
33#
34# Operations are
35#
36# - scrollUpLine
37# - scrollUpPage
38# - scrollDownLine
39# - scrollDownPage
40#
41# - emitSelection
42#
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.
46#
47# --------------------------------------------------------------
48
49key Escape : "\E"
50key Tab : "\t"
51
52# VT100 can add an extra \n after return.
53# The NewLine mode is set by an escape sequence.
54
55key Return-Alt-NewLine : "\r"
56key Return-Alt+NewLine : "\r\n"
57
58key Return+Alt-NewLine : "\E\r"
59key Return+Alt+NewLine : "\E\r\n"
60
61# Some desperately try to save the ^H.
62
63key Backspace : "\x7f"
64key Delete : "\E[3~"
65
66# These codes are for the VT52 mode of VT100
67# The Ansi mode (i.e. VT100 mode) is set by
68# an escape sequence
69
70key Up -Shift-Ansi : "\EA"
71key Down -Shift-Ansi : "\EB"
72key Right-Shift-Ansi : "\EC"
73key Left -Shift-Ansi : "\ED"
74
75# VT100 emits a mode bit together
76# with the arrow keys.The AppCuKeys
77# mode is set by an escape sequence.
78
79key Up -Shift+Ansi+AppCuKeys : "\EOA"
80key Down -Shift+Ansi+AppCuKeys : "\EOB"
81key Right-Shift+Ansi+AppCuKeys : "\EOC"
82key Left -Shift+Ansi+AppCuKeys : "\EOD"
83
84key Up -Shift+Ansi-AppCuKeys : "\E[A"
85key Down -Shift+Ansi-AppCuKeys : "\E[B"
86key Right-Shift+Ansi-AppCuKeys : "\E[C"
87key Left -Shift+Ansi-AppCuKeys : "\E[D"
88
89# linux functions keys F1-F5 differ from xterm
90
91key F1 : "\E[[A"
92key F2 : "\E[[B"
93key F3 : "\E[[C"
94key F4 : "\E[[D"
95key F5 : "\E[[E"
96
97key F6 : "\E[17~"
98key F7 : "\E[18~"
99key F8 : "\E[19~"
100key F9 : "\E[20~"
101key F10 : "\E[21~"
102key F11 : "\E[23~"
103key F12 : "\E[24~"
104
105key Home : "\E[H"
106key End : "\E[F"
107
108key Prior -Shift : "\E[5~"
109key Next -Shift : "\E[6~"
110key Insert-Shift : "\E[2~"
111
112# Keypad-Enter. See comment on Return above.
113
114key Enter+NewLine : "\r\n"
115key Enter-NewLine : "\r"
116
117key Space +Control : "\x00"
118
119# some of keys are used by konsole.
120
121key Left +Shift : prevSession
122key Right +Shift : nextSession
123key Up +Shift : scrollLineUp
124key Prior +Shift : scrollPageUp
125key Down +Shift : scrollLineDown
126key Next +Shift : scrollPageDown
127key Insert+Shift : emitSelection
128
129#----------------------------------------------------------
130
131# keypad characters as offered by Qt
132# cannot be recognized as such.
133
134#----------------------------------------------------------
135
136# Following other strings as emitted by konsole.
diff --git a/etc/keytabs/vt100.keytab b/etc/keytabs/vt100.keytab
new file mode 100644
index 0000000..0237578
--- a/dev/null
+++ b/etc/keytabs/vt100.keytab
@@ -0,0 +1,136 @@
1# [vt100.keytab] Konsole Keyboard Table (VT100 keys)
2#
3# --------------------------------------------------------------
4
5keyboard "vt100 (historical)"
6
7# --------------------------------------------------------------
8#
9# This configuration table allows to customize the
10# meaning of the keys.
11#
12# The syntax is that each entry has the form :
13#
14# "key" Keyname { ("+"|"-") Modename } ":" (String|Operation)
15#
16# Keynames are those defined in <qnamespace.h> with the
17# "Qt::Key_" removed. (We'd better insert the list here)
18#
19# Mode names are :
20#
21# - Shift
22# - Alt
23# - Control
24#
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.
28#
29# - Newline : effects Return and Enter key.
30# - Application : effects Up and Down key.
31#
32# - Ansi : effects Up and Down key (This is for VT52, really).
33#
34# Operations are
35#
36# - scrollUpLine
37# - scrollUpPage
38# - scrollDownLine
39# - scrollDownPage
40#
41# - emitSelection
42#
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.
46#
47# --------------------------------------------------------------
48
49key Escape : "\E"
50key Tab : "\t"
51
52# VT100 can add an extra \n after return.
53# The NewLine mode is set by an escape sequence.
54
55key Return-Alt-NewLine : "\r"
56key Return-Alt+NewLine : "\r\n"
57
58key Return+Alt-NewLine : "\E\r"
59key Return+Alt+NewLine : "\E\r\n"
60
61# Some desperately try to save the ^H.
62
63key Backspace : "\x7f"
64key Delete : "\E[3~"
65
66# These codes are for the VT52 mode of VT100
67# The Ansi mode (i.e. VT100 mode) is set by
68# an escape sequence
69
70key Up -Shift-Ansi : "\EA"
71key Down -Shift-Ansi : "\EB"
72key Right-Shift-Ansi : "\EC"
73key Left -Shift-Ansi : "\ED"
74
75# VT100 emits a mode bit together
76# with the arrow keys.The AppCuKeys
77# mode is set by an escape sequence.
78
79key Up -Shift+Ansi+AppCuKeys : "\EOA"
80key Down -Shift+Ansi+AppCuKeys : "\EOB"
81key Right-Shift+Ansi+AppCuKeys : "\EOC"
82key Left -Shift+Ansi+AppCuKeys : "\EOD"
83
84key Up -Shift+Ansi-AppCuKeys : "\E[A"
85key Down -Shift+Ansi-AppCuKeys : "\E[B"
86key Right-Shift+Ansi-AppCuKeys : "\E[C"
87key Left -Shift+Ansi-AppCuKeys : "\E[D"
88
89# function keys (FIXME: make pf1-pf4)
90
91key F1 : "\E[11~"
92key F2 : "\E[12~"
93key F3 : "\E[13~"
94key F4 : "\E[14~"
95key F5 : "\E[15~"
96
97key F6 : "\E[17~"
98key F7 : "\E[18~"
99key F8 : "\E[19~"
100key F9 : "\E[20~"
101key F10 : "\E[21~"
102key F11 : "\E[23~"
103key F12 : "\E[24~"
104
105key Home : "\E[H"
106key End : "\E[F"
107
108key Prior -Shift : "\E[5~"
109key Next -Shift : "\E[6~"
110key Insert-Shift : "\E[2~"
111
112# Keypad-Enter. See comment on Return above.
113
114key Enter+NewLine : "\r\n"
115key Enter-NewLine : "\r"
116
117key Space +Control : "\x00"
118
119# some of keys are used by konsole.
120
121key Left +Shift : prevSession
122key Right +Shift : nextSession
123key Up +Shift : scrollLineUp
124key Prior +Shift : scrollPageUp
125key Down +Shift : scrollLineDown
126key Next +Shift : scrollPageDown
127key Insert+Shift : emitSelection
128
129#----------------------------------------------------------
130
131# keypad characters as offered by Qt
132# cannot be recognized as such.
133
134#----------------------------------------------------------
135
136# Following other strings as emitted by konsole.