Debian Codegraph @

src/keyboard_profiles/apple.keytab

raw
1 # [linux.keytab] Konsole Keyboard Table (Linux console keys)
2 #
3 # --------------------------------------------------------------
4
5 # NOT TESTED, MAY NEED SOME CLEANUPS
6 keyboard "Apple 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 # preceeded 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 # linux functions keys F1-F5 differ from xterm
88
89 key F1 : "\E[[A"
90 key F2 : "\E[[B"
91 key F3 : "\E[[C"
92 key F4 : "\E[[D"
93 key F5 : "\E[[E"
94
95 key F6 : "\E[17~"
96 key F7 : "\E[18~"
97 key F8 : "\E[19~"
98 key F9 : "\E[20~"
99 key F10 : "\E[21~"
100 key F11 : "\E[23~"
101 key F12 : "\E[24~"
102
103 key Home : "\E[1~"
104 key End : "\E[4~"
105
106 key Prior -Shift : "\E[5~"
107 key Next -Shift : "\E[6~"
108 key Insert-Shift : "\E[2~"
109
110 # Keypad-Enter. See comment on Return above.
111
112 key Enter+NewLine : "\r\n"
113 key Enter-NewLine : "\r"
114
115 key Space+Meta : "\x00"
116 key A +Meta : "\x01"
117 key B +Meta : "\x02"
118 key C +Meta : "\x03"
119 key D +Meta : "\x04"
120 key E +Meta : "\x05"
121 key F +Meta : "\x06"
122 key G +Meta : "\x07"
123 key H +Meta : "\x08"
124 key I +Meta : "\x09"
125 key J +Meta : "\x0A"
126 key K +Meta : "\x0B"
127 key L +Meta : "\x0C"
128 key M +Meta : "\x0D"
129 key N +Meta : "\x0E"
130 key O +Meta : "\x0F"
131 key P +Meta : "\x10"
132 key Q +Meta : "\x11"
133 key R +Meta : "\x12"
134 key S +Meta : "\x13"
135 key T +Meta : "\x14"
136 key U +Meta : "\x15"
137 key V +Meta : "\x16"
138 key W +Meta : "\x17"
139 key X +Meta : "\x18"
140 key Y +Meta : "\x19"
141 key Z +Meta : "\x1A"
142
143 # some of keys are used by konsole.
144
145 key Up +Shift : scrollLineUp
146 key Prior +Shift : scrollPageUp
147 key Down +Shift : scrollLineDown
148 key Next +Shift : scrollPageDown
149
150 key ScrollLock : scrollLock
151
152 #----------------------------------------------------------
153
154 # Following other strings as emitted by konsole.