1 | # [linux.keytab] Konsole Keyboard Table (Linux console keys) |
---|
2 | # |
---|
3 | # -------------------------------------------------------------- |
---|
4 | |
---|
5 | # NOT TESTED, MAY NEED SOME CLEANUPS |
---|
6 | keyboard "Linux console" |
---|
7 | |
---|
8 | # -------------------------------------------------------------- |
---|
9 | # |
---|
10 | # This configuration table allows to customize the |
---|
11 | # meaning of the keys. |
---|
12 | # |
---|
13 | # The syntax is that each entry has the form : |
---|
14 | # |
---|
15 | # "key" Keyname { ("+"|"-") Modename } ":" (String|Operation) |
---|
16 | # |
---|
17 | # Keynames are those defined in <qnamespace.h> with the |
---|
18 | # "Qt::Key_" removed. (We'd better insert the list here) |
---|
19 | # |
---|
20 | # Mode names are : |
---|
21 | # |
---|
22 | # - Shift |
---|
23 | # - Alt |
---|
24 | # - Control |
---|
25 | # |
---|
26 | # The VT100 emulation has two modes that can affect the |
---|
27 | # sequences emitted by certain keys. These modes are |
---|
28 | # under control of the client program. |
---|
29 | # |
---|
30 | # - Newline : effects Return and Enter key. |
---|
31 | # - Application : effects Up and Down key. |
---|
32 | # |
---|
33 | # - Ansi : effects Up and Down key (This is for VT52, really). |
---|
34 | # |
---|
35 | # Operations are |
---|
36 | # |
---|
37 | # - scrollUpLine |
---|
38 | # - scrollUpPage |
---|
39 | # - scrollDownLine |
---|
40 | # - scrollDownPage |
---|
41 | # |
---|
42 | # - emitSelection |
---|
43 | # |
---|
44 | # If the key is not found here, the text of the |
---|
45 | # key event as provided by QT is emitted, possibly |
---|
46 | # preceded by ESC if the Alt key is pressed. |
---|
47 | # |
---|
48 | # -------------------------------------------------------------- |
---|
49 | |
---|
50 | key Escape : "\E" |
---|
51 | key Tab : "\t" |
---|
52 | |
---|
53 | # VT100 can add an extra \n after return. |
---|
54 | # The NewLine mode is set by an escape sequence. |
---|
55 | |
---|
56 | key Return-NewLine : "\r" |
---|
57 | key Return+NewLine : "\r\n" |
---|
58 | |
---|
59 | # Some desperately try to save the ^H. |
---|
60 | |
---|
61 | key Backspace : "\x7f" |
---|
62 | key Delete : "\E[3~" |
---|
63 | |
---|
64 | # These codes are for the VT52 mode of VT100 |
---|
65 | # The Ansi mode (i.e. VT100 mode) is set by |
---|
66 | # an escape sequence |
---|
67 | |
---|
68 | key Up -Shift-Ansi : "\EA" |
---|
69 | key Down -Shift-Ansi : "\EB" |
---|
70 | key Right-Shift-Ansi : "\EC" |
---|
71 | key Left -Shift-Ansi : "\ED" |
---|
72 | |
---|
73 | # VT100 emits a mode bit together |
---|
74 | # with the arrow keys.The AppCuKeys |
---|
75 | # mode is set by an escape sequence. |
---|
76 | |
---|
77 | key Up -Shift+Ansi+AppCuKeys : "\EOA" |
---|
78 | key Down -Shift+Ansi+AppCuKeys : "\EOB" |
---|
79 | key Right-Shift+Ansi+AppCuKeys : "\EOC" |
---|
80 | key Left -Shift+Ansi+AppCuKeys : "\EOD" |
---|
81 | |
---|
82 | key Up -Shift+Ansi-AppCuKeys : "\E[A" |
---|
83 | key Down -Shift+Ansi-AppCuKeys : "\E[B" |
---|
84 | key Right-Shift+Ansi-AppCuKeys : "\E[C" |
---|
85 | key Left -Shift+Ansi-AppCuKeys : "\E[D" |
---|
86 | |
---|
87 | key Up -Shift+AnyMod+Ansi : "\E[1;*A" |
---|
88 | key Down -Shift+AnyMod+Ansi : "\E[1;*B" |
---|
89 | key Right -Shift+AnyMod+Ansi : "\E[1;*C" |
---|
90 | key Left -Shift+AnyMod+Ansi : "\E[1;*D" |
---|
91 | |
---|
92 | # linux functions keys F1-F5 differ from xterm |
---|
93 | |
---|
94 | key F1 : "\E[[A" |
---|
95 | key F2 : "\E[[B" |
---|
96 | key F3 : "\E[[C" |
---|
97 | key F4 : "\E[[D" |
---|
98 | key F5 : "\E[[E" |
---|
99 | |
---|
100 | key F6 : "\E[17~" |
---|
101 | key F7 : "\E[18~" |
---|
102 | key F8 : "\E[19~" |
---|
103 | key F9 : "\E[20~" |
---|
104 | key F10 : "\E[21~" |
---|
105 | key F11 : "\E[23~" |
---|
106 | key F12 : "\E[24~" |
---|
107 | |
---|
108 | key Home : "\E[1~" |
---|
109 | key End : "\E[4~" |
---|
110 | |
---|
111 | key PgUp -Shift : "\E[5~" |
---|
112 | key PgDown -Shift : "\E[6~" |
---|
113 | key Insert -Shift : "\E[2~" |
---|
114 | |
---|
115 | # Keypad-Enter. See comment on Return above. |
---|
116 | |
---|
117 | key Enter+NewLine : "\r\n" |
---|
118 | key Enter-NewLine : "\r" |
---|
119 | |
---|
120 | key Space +Control : "\x00" |
---|
121 | |
---|
122 | # some of keys are used by konsole. |
---|
123 | |
---|
124 | key Up +Shift : scrollLineUp |
---|
125 | key PgUp +Shift : scrollPageUp |
---|
126 | key Down +Shift : scrollLineDown |
---|
127 | key PgDown +Shift : scrollPageDown |
---|
128 | |
---|
129 | key ScrollLock : scrollLock |
---|
130 | |
---|
131 | #---------------------------------------------------------- |
---|
132 | |
---|
133 | # keypad characters as offered by Qt |
---|
134 | # cannot be recognized as such. |
---|
135 | |
---|
136 | #---------------------------------------------------------- |
---|
137 | |
---|
138 | # Following other strings as emitted by konsole. |
---|