1 | # |
---|
2 | # NOTE: This keyboard binding is not installed because it |
---|
3 | # apparently doesn't work with actual VT420 systems |
---|
4 | # (see BUG:170220) |
---|
5 | # |
---|
6 | # [vt420pc.keytab] Konsole Keyboard Table (VT420pc keys) |
---|
7 | # adapted by ferdinand gassauer f.gassauer@aon.at |
---|
8 | # Nov 2000 |
---|
9 | # |
---|
10 | ################################################################ |
---|
11 | # |
---|
12 | # The escape sequences emitted by the |
---|
13 | # keys Shift+F1 to Shift+F12 might not fit your needs |
---|
14 | # |
---|
15 | ################# IMPORTANT NOTICE ############################# |
---|
16 | # the key bindings (Kcontrol -> look and feel -> keybindgs) |
---|
17 | # overrule the settings in this file. The key bindings might be |
---|
18 | # changed by the user WITHOUT notification of the maintainer of |
---|
19 | # the keytab file. Konsole will not work as expected by |
---|
20 | # the maintainer of the keytab file. |
---|
21 | ################################################################ |
---|
22 | # |
---|
23 | # -------------------------------------------------------------- |
---|
24 | |
---|
25 | keyboard "DEC VT420 Terminal" |
---|
26 | |
---|
27 | # -------------------------------------------------------------- |
---|
28 | # |
---|
29 | # This configuration table allows to customize the |
---|
30 | # meaning of the keys. |
---|
31 | # |
---|
32 | # The syntax is that each entry has the form : |
---|
33 | # |
---|
34 | # "key" Keyname { ("+"|"-") Modename } ":" (String|Operation) |
---|
35 | # |
---|
36 | # Keynames are those defined in <qnamespace.h> with the |
---|
37 | # "Qt::Key_" removed. (We'd better insert the list here) |
---|
38 | # |
---|
39 | # Mode names are : |
---|
40 | # |
---|
41 | # - Shift |
---|
42 | # - Alt |
---|
43 | # - Control |
---|
44 | # |
---|
45 | # The VT100 emulation has two modes that can affect the |
---|
46 | # sequences emitted by certain keys. These modes are |
---|
47 | # under control of the client program. |
---|
48 | # |
---|
49 | # - Newline : effects Return and Enter key. |
---|
50 | # - Application : effects Up and Down key. |
---|
51 | # |
---|
52 | # - Ansi : effects Up and Down key (This is for VT52, really). |
---|
53 | # |
---|
54 | # Operations are |
---|
55 | # |
---|
56 | # - scrollUpLine |
---|
57 | # - scrollUpPage |
---|
58 | # - scrollDownLine |
---|
59 | # - scrollDownPage |
---|
60 | # |
---|
61 | # - emitSelection |
---|
62 | # |
---|
63 | # If the key is not found here, the text of the |
---|
64 | # key event as provided by QT is emitted, possibly |
---|
65 | # preceded by ESC if the Alt key is pressed. |
---|
66 | # |
---|
67 | # -------------------------------------------------------------- |
---|
68 | |
---|
69 | key Escape : "\E" |
---|
70 | key Tab : "\t" |
---|
71 | key Backtab: "\E[Z" |
---|
72 | |
---|
73 | # VT100 can add an extra \n after return. |
---|
74 | # The NewLine mode is set by an escape sequence. |
---|
75 | |
---|
76 | key Return-NewLine : "\r" |
---|
77 | key Return+NewLine : "\r\n" |
---|
78 | |
---|
79 | # Some desperately try to save the ^H. |
---|
80 | # may be not everyone wants this |
---|
81 | |
---|
82 | key Backspace : "\x08" # Control H |
---|
83 | key Delete : "\x7f" |
---|
84 | |
---|
85 | # These codes are for the VT420pc |
---|
86 | # The Ansi mode (i.e. VT100 mode) is set by |
---|
87 | # an escape sequence |
---|
88 | |
---|
89 | key Up -Shift-Ansi : "\EA" |
---|
90 | key Down -Shift-Ansi : "\EB" |
---|
91 | key Right-Shift-Ansi : "\EC" |
---|
92 | key Left -Shift-Ansi : "\ED" |
---|
93 | |
---|
94 | # VT100 emits a mode bit together |
---|
95 | # with the arrow keys.The AppCuKeys |
---|
96 | # mode is set by an escape sequence. |
---|
97 | |
---|
98 | key Up -Shift+Ansi+AppCuKeys : "\EOA" |
---|
99 | key Down -Shift+Ansi+AppCuKeys : "\EOB" |
---|
100 | key Right-Shift+Ansi+AppCuKeys : "\EOC" |
---|
101 | key Left -Shift+Ansi+AppCuKeys : "\EOD" |
---|
102 | |
---|
103 | key Up -Shift+Ansi-AppCuKeys : "\E[A" |
---|
104 | key Down -Shift+Ansi-AppCuKeys : "\E[B" |
---|
105 | key Right-Shift+Ansi-AppCuKeys : "\E[C" |
---|
106 | key Left -Shift+Ansi-AppCuKeys : "\E[D" |
---|
107 | |
---|
108 | # function keys |
---|
109 | |
---|
110 | key F1 -Shift : "\E[11~" |
---|
111 | key F2 -Shift : "\E[12~" |
---|
112 | key F3 -Shift : "\E[13~" |
---|
113 | key F4 -Shift : "\E[14~" |
---|
114 | key F5 -Shift : "\E[15~" |
---|
115 | key F6 -Shift : "\E[17~" |
---|
116 | key F7 -Shift : "\E[18~" |
---|
117 | key F8 -Shift : "\E[19~" |
---|
118 | key F9 -Shift : "\E[20~" |
---|
119 | key F10-Shift : "\E[21~" |
---|
120 | key F11-Shift : "\E[23~" |
---|
121 | key F12-Shift : "\E[24~" |
---|
122 | # |
---|
123 | # Shift F1-F12 |
---|
124 | # |
---|
125 | key F1 +Shift : "\E[11;2~" |
---|
126 | key F2 +Shift : "\E[12;2~" |
---|
127 | key F3 +Shift : "\E[13;2~" |
---|
128 | key F4 +Shift : "\E[14;2~" |
---|
129 | key F5 +Shift : "\E[15;2~" |
---|
130 | key F6 +Shift : "\E[17;2~" |
---|
131 | key F7 +Shift : "\E[18;2~" |
---|
132 | key F8 +Shift : "\E[19;2~" |
---|
133 | key F9 +Shift : "\E[20;2~" |
---|
134 | key F10+Shift : "\E[21;2~" |
---|
135 | key F11+Shift : "\E[23;2~" |
---|
136 | key F12+Shift : "\E[24;2~" |
---|
137 | |
---|
138 | key Home : "\E[H" |
---|
139 | key End : "\E[F" |
---|
140 | |
---|
141 | key PgUp -Shift : "\E[5~" |
---|
142 | key PgDown -Shift : "\E[6~" |
---|
143 | key Insert -Shift : "\E[2~" |
---|
144 | |
---|
145 | # Keypad-Enter. See comment on Return above. |
---|
146 | |
---|
147 | key Enter+NewLine : "\r\n" |
---|
148 | key Enter-NewLine : "\r" |
---|
149 | |
---|
150 | key Space +Control : "\x00" |
---|
151 | |
---|
152 | # some of keys are used by konsole. |
---|
153 | |
---|
154 | key Up +Shift : scrollLineUp |
---|
155 | key PgUp +Shift : scrollPageUp |
---|
156 | key Down +Shift : scrollLineDown |
---|
157 | key PgDown +Shift : scrollPageDown |
---|
158 | |
---|
159 | key ScrollLock : scrollLock |
---|
160 | |
---|
161 | #---------------------------------------------------------- |
---|
162 | |
---|
163 | # keypad characters as offered by Qt |
---|
164 | # cannot be recognized as such. |
---|
165 | |
---|
166 | #---------------------------------------------------------- |
---|
167 | |
---|
168 | # Following other strings as emitted by konsole. |
---|