-rw-r--r-- | etc/keytabs/linux.keytab | 136 | ||||
-rw-r--r-- | etc/keytabs/vt100.keytab | 136 |
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 | |||
5 | keyboard "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 | |||
49 | key Escape : "\E" | ||
50 | key Tab : "\t" | ||
51 | |||
52 | # VT100 can add an extra \n after return. | ||
53 | # The NewLine mode is set by an escape sequence. | ||
54 | |||
55 | key Return-Alt-NewLine : "\r" | ||
56 | key Return-Alt+NewLine : "\r\n" | ||
57 | |||
58 | key Return+Alt-NewLine : "\E\r" | ||
59 | key Return+Alt+NewLine : "\E\r\n" | ||
60 | |||
61 | # Some desperately try to save the ^H. | ||
62 | |||
63 | key Backspace : "\x7f" | ||
64 | key 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 | |||
70 | key Up -Shift-Ansi : "\EA" | ||
71 | key Down -Shift-Ansi : "\EB" | ||
72 | key Right-Shift-Ansi : "\EC" | ||
73 | key 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 | |||
79 | key Up -Shift+Ansi+AppCuKeys : "\EOA" | ||
80 | key Down -Shift+Ansi+AppCuKeys : "\EOB" | ||
81 | key Right-Shift+Ansi+AppCuKeys : "\EOC" | ||
82 | key Left -Shift+Ansi+AppCuKeys : "\EOD" | ||
83 | |||
84 | key Up -Shift+Ansi-AppCuKeys : "\E[A" | ||
85 | key Down -Shift+Ansi-AppCuKeys : "\E[B" | ||
86 | key Right-Shift+Ansi-AppCuKeys : "\E[C" | ||
87 | key Left -Shift+Ansi-AppCuKeys : "\E[D" | ||
88 | |||
89 | # linux functions keys F1-F5 differ from xterm | ||
90 | |||
91 | key F1 : "\E[[A" | ||
92 | key F2 : "\E[[B" | ||
93 | key F3 : "\E[[C" | ||
94 | key F4 : "\E[[D" | ||
95 | key F5 : "\E[[E" | ||
96 | |||
97 | key F6 : "\E[17~" | ||
98 | key F7 : "\E[18~" | ||
99 | key F8 : "\E[19~" | ||
100 | key F9 : "\E[20~" | ||
101 | key F10 : "\E[21~" | ||
102 | key F11 : "\E[23~" | ||
103 | key F12 : "\E[24~" | ||
104 | |||
105 | key Home : "\E[H" | ||
106 | key End : "\E[F" | ||
107 | |||
108 | key Prior -Shift : "\E[5~" | ||
109 | key Next -Shift : "\E[6~" | ||
110 | key Insert-Shift : "\E[2~" | ||
111 | |||
112 | # Keypad-Enter. See comment on Return above. | ||
113 | |||
114 | key Enter+NewLine : "\r\n" | ||
115 | key Enter-NewLine : "\r" | ||
116 | |||
117 | key Space +Control : "\x00" | ||
118 | |||
119 | # some of keys are used by konsole. | ||
120 | |||
121 | key Left +Shift : prevSession | ||
122 | key Right +Shift : nextSession | ||
123 | key Up +Shift : scrollLineUp | ||
124 | key Prior +Shift : scrollPageUp | ||
125 | key Down +Shift : scrollLineDown | ||
126 | key Next +Shift : scrollPageDown | ||
127 | key 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 | |||
5 | keyboard "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 | |||
49 | key Escape : "\E" | ||
50 | key Tab : "\t" | ||
51 | |||
52 | # VT100 can add an extra \n after return. | ||
53 | # The NewLine mode is set by an escape sequence. | ||
54 | |||
55 | key Return-Alt-NewLine : "\r" | ||
56 | key Return-Alt+NewLine : "\r\n" | ||
57 | |||
58 | key Return+Alt-NewLine : "\E\r" | ||
59 | key Return+Alt+NewLine : "\E\r\n" | ||
60 | |||
61 | # Some desperately try to save the ^H. | ||
62 | |||
63 | key Backspace : "\x7f" | ||
64 | key 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 | |||
70 | key Up -Shift-Ansi : "\EA" | ||
71 | key Down -Shift-Ansi : "\EB" | ||
72 | key Right-Shift-Ansi : "\EC" | ||
73 | key 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 | |||
79 | key Up -Shift+Ansi+AppCuKeys : "\EOA" | ||
80 | key Down -Shift+Ansi+AppCuKeys : "\EOB" | ||
81 | key Right-Shift+Ansi+AppCuKeys : "\EOC" | ||
82 | key Left -Shift+Ansi+AppCuKeys : "\EOD" | ||
83 | |||
84 | key Up -Shift+Ansi-AppCuKeys : "\E[A" | ||
85 | key Down -Shift+Ansi-AppCuKeys : "\E[B" | ||
86 | key Right-Shift+Ansi-AppCuKeys : "\E[C" | ||
87 | key Left -Shift+Ansi-AppCuKeys : "\E[D" | ||
88 | |||
89 | # function keys (FIXME: make pf1-pf4) | ||
90 | |||
91 | key F1 : "\E[11~" | ||
92 | key F2 : "\E[12~" | ||
93 | key F3 : "\E[13~" | ||
94 | key F4 : "\E[14~" | ||
95 | key F5 : "\E[15~" | ||
96 | |||
97 | key F6 : "\E[17~" | ||
98 | key F7 : "\E[18~" | ||
99 | key F8 : "\E[19~" | ||
100 | key F9 : "\E[20~" | ||
101 | key F10 : "\E[21~" | ||
102 | key F11 : "\E[23~" | ||
103 | key F12 : "\E[24~" | ||
104 | |||
105 | key Home : "\E[H" | ||
106 | key End : "\E[F" | ||
107 | |||
108 | key Prior -Shift : "\E[5~" | ||
109 | key Next -Shift : "\E[6~" | ||
110 | key Insert-Shift : "\E[2~" | ||
111 | |||
112 | # Keypad-Enter. See comment on Return above. | ||
113 | |||
114 | key Enter+NewLine : "\r\n" | ||
115 | key Enter-NewLine : "\r" | ||
116 | |||
117 | key Space +Control : "\x00" | ||
118 | |||
119 | # some of keys are used by konsole. | ||
120 | |||
121 | key Left +Shift : prevSession | ||
122 | key Right +Shift : nextSession | ||
123 | key Up +Shift : scrollLineUp | ||
124 | key Prior +Shift : scrollPageUp | ||
125 | key Down +Shift : scrollLineDown | ||
126 | key Next +Shift : scrollPageDown | ||
127 | key 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. | ||