annotate src/keymap.h @ 340:210108b60fbb

updated for version 7.0088
author vimboss
date Sun, 19 Jun 2005 22:50:11 +0000
parents 9281a51ca7a2
children 0fd7ac767ecd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 /* vi:set ts=8 sts=4 sw=4:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 * VIM - Vi IMproved by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 * Do ":help uganda" in Vim to read copying and usage conditions.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 * Do ":help credits" in Vim to see a list of people who contributed.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 * For MSDOS some keys produce codes larger than 0xff. They are split into two
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 * chars, the first one is K_NUL (same value used in term.h).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 #define K_NUL (0xce) /* for MSDOS: special key follows */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 * Keycode definitions for special keys.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 * Any special key code sequences are replaced by these codes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 * K_SPECIAL is the first byte of a special key code and is always followed by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 * two bytes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 * The second byte can have any value. ASCII is used for normal termcap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 * entries, 0x80 and higher for special keys, see below.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 * The third byte is guaranteed to be between 0x02 and 0x7f.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 #define K_SPECIAL (0x80)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 * Positive characters are "normal" characters.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 * Negative characters are special key codes. Only characters below -0x200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 * are used to so that the absolute value can't be mistaken for a single-byte
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 * character.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 #define IS_SPECIAL(c) ((c) < 0)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 * Characters 0x0100 - 0x01ff have a special meaning for abbreviations.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 * Multi-byte characters also have ABBR_OFF added, thus are above 0x0200.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 #define ABBR_OFF 0x100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 * NUL cannot be in the input string, therefore it is replaced by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 * K_SPECIAL KS_ZERO KE_FILLER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 #define KS_ZERO 255
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 * K_SPECIAL cannot be in the input string, therefore it is replaced by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 * K_SPECIAL KS_SPECIAL KE_FILLER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 #define KS_SPECIAL 254
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 * KS_EXTRA is used for keys that have no termcap name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 * K_SPECIAL KS_EXTRA KE_xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 #define KS_EXTRA 253
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 * KS_MODIFIER is used when a modifier is given for a (special) key
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 * K_SPECIAL KS_MODIFIER bitmask
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 #define KS_MODIFIER 252
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 * These are used for the GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 * K_SPECIAL KS_xxx KE_FILLER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 #define KS_MOUSE 251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 #define KS_MENU 250
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 #define KS_VER_SCROLLBAR 249
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 #define KS_HOR_SCROLLBAR 248
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 * These are used for DEC mouse
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 #define KS_NETTERM_MOUSE 247
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 #define KS_DEC_MOUSE 246
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 * Used for switching Select mode back on after a mapping or menu.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 #define KS_SELECT 245
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 #define K_SELECT_STRING (char_u *)"\200\365X"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 * Used for tearing off a menu.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 #define KS_TEAROFF 244
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 /* used for JSB term mouse */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 #define KS_JSBTERM_MOUSE 243
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 /* used a termcap entry that produces a normal character */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 #define KS_KEY 242
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 /* Used for the qnx pterm mouse */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 #define KS_PTERM_MOUSE 241
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 * Filler used after KS_SPECIAL and others
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 #define KE_FILLER ('X')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 * translation of three byte code "K_SPECIAL a b" into int "K_xxx" and back
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 #define TERMCAP2KEY(a, b) (-((a) + ((int)(b) << 8)))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 #define KEY2TERMCAP0(x) ((-(x)) & 0xff)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 #define KEY2TERMCAP1(x) (((unsigned)(-(x)) >> 8) & 0xff)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 * get second or third byte when translating special key code into three bytes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 #define K_SECOND(c) ((c) == K_SPECIAL ? KS_SPECIAL : (c) == NUL ? KS_ZERO : KEY2TERMCAP0(c))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 #define K_THIRD(c) (((c) == K_SPECIAL || (c) == NUL) ? KE_FILLER : KEY2TERMCAP1(c))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 * get single int code from second byte after K_SPECIAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 #define TO_SPECIAL(a, b) ((a) == KS_SPECIAL ? K_SPECIAL : (a) == KS_ZERO ? K_ZERO : TERMCAP2KEY(a, b))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 * Codes for keys that do not have a termcap name.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 * K_SPECIAL KS_EXTRA KE_xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 enum key_extra
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 KE_NAME = 3 /* name of this terminal entry */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 , KE_S_UP /* shift-up */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 , KE_S_DOWN /* shift-down */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 , KE_S_F1 /* shifted function keys */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 , KE_S_F2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 , KE_S_F3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 , KE_S_F4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 , KE_S_F5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 , KE_S_F6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 , KE_S_F7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 , KE_S_F8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 , KE_S_F9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 , KE_S_F10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 , KE_S_F11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 , KE_S_F12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 , KE_S_F13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 , KE_S_F14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 , KE_S_F15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 , KE_S_F16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 , KE_S_F17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 , KE_S_F18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 , KE_S_F19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 , KE_S_F20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 , KE_S_F21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 , KE_S_F22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 , KE_S_F23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 , KE_S_F24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 , KE_S_F25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 , KE_S_F26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 , KE_S_F27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 , KE_S_F28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 , KE_S_F29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 , KE_S_F30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 , KE_S_F31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 , KE_S_F32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 , KE_S_F33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 , KE_S_F34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 , KE_S_F35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 , KE_S_F36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 , KE_S_F37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 , KE_MOUSE /* mouse event start */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 * Symbols for pseudo keys which are translated from the real key symbols
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 * above.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 , KE_LEFTMOUSE /* Left mouse button click */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 , KE_LEFTDRAG /* Drag with left mouse button down */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 , KE_LEFTRELEASE /* Left mouse button release */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 , KE_MIDDLEMOUSE /* Middle mouse button click */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 , KE_MIDDLEDRAG /* Drag with middle mouse button down */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 , KE_MIDDLERELEASE /* Middle mouse button release */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 , KE_RIGHTMOUSE /* Right mouse button click */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 , KE_RIGHTDRAG /* Drag with right mouse button down */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 , KE_RIGHTRELEASE /* Right mouse button release */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 , KE_IGNORE /* Ignored mouse drag/release */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 , KE_TAB /* unshifted TAB key */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 , KE_S_TAB_OLD /* shifted TAB key (no longer used) */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 , KE_SNIFF /* SNiFF+ input waiting */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 , KE_XF1 /* extra vt100 function keys for xterm */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 , KE_XF2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 , KE_XF3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 , KE_XF4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 , KE_XEND /* extra (vt100) end key for xterm */
230
9281a51ca7a2 updated for version 7.0064
vimboss
parents: 203
diff changeset
209 , KE_ZEND /* extra (vt100) end key for xterm */
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 , KE_XHOME /* extra (vt100) home key for xterm */
230
9281a51ca7a2 updated for version 7.0064
vimboss
parents: 203
diff changeset
211 , KE_ZHOME /* extra (vt100) home key for xterm */
180
7e70fc748752 updated for version 7.0056
vimboss
parents: 179
diff changeset
212 , KE_XUP /* extra vt100 cursor keys for xterm */
7e70fc748752 updated for version 7.0056
vimboss
parents: 179
diff changeset
213 , KE_XDOWN
7e70fc748752 updated for version 7.0056
vimboss
parents: 179
diff changeset
214 , KE_XLEFT
7e70fc748752 updated for version 7.0056
vimboss
parents: 179
diff changeset
215 , KE_XRIGHT
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 , KE_LEFTMOUSE_NM /* non-mappable Left mouse button click */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 , KE_LEFTRELEASE_NM /* non-mappable left mouse button release */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 , KE_S_XF1 /* extra vt100 shifted function keys for xterm */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 , KE_S_XF2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 , KE_S_XF3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 , KE_S_XF4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 , KE_MOUSEDOWN /* scroll wheel pseudo-button Down */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 , KE_MOUSEUP /* scroll wheel pseudo-button Up */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 , KE_KINS /* keypad Insert key */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 , KE_KDEL /* keypad Delete key */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 , KE_CSI /* CSI typed directly */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 , KE_SNR /* <SNR> */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 , KE_PLUG /* <Plug> */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 , KE_CMDWIN /* open command-line window from Command-line Mode */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 , KE_C_LEFT /* control-left */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 , KE_C_RIGHT /* control-right */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 , KE_C_HOME /* control-home */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 , KE_C_END /* control-end */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 , KE_X1MOUSE /* X1/X2 mouse-buttons */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 , KE_X1DRAG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 , KE_X1RELEASE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 , KE_X2MOUSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 , KE_X2DRAG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 , KE_X2RELEASE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 , KE_DROP /* DnD data is available */
203
80000fb16feb updated for version 7.0060
vimboss
parents: 180
diff changeset
249 , KE_CURSORHOLD /* CursorHold event */
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 * the three byte codes are replaced with the following int when using vgetc()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 #define K_ZERO TERMCAP2KEY(KS_ZERO, KE_FILLER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 #define K_UP TERMCAP2KEY('k', 'u')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 #define K_DOWN TERMCAP2KEY('k', 'd')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 #define K_LEFT TERMCAP2KEY('k', 'l')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 #define K_RIGHT TERMCAP2KEY('k', 'r')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 #define K_S_UP TERMCAP2KEY(KS_EXTRA, KE_S_UP)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 #define K_S_DOWN TERMCAP2KEY(KS_EXTRA, KE_S_DOWN)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 #define K_S_LEFT TERMCAP2KEY('#', '4')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 #define K_C_LEFT TERMCAP2KEY(KS_EXTRA, KE_C_LEFT)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 #define K_S_RIGHT TERMCAP2KEY('%', 'i')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 #define K_C_RIGHT TERMCAP2KEY(KS_EXTRA, KE_C_RIGHT)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 #define K_S_HOME TERMCAP2KEY('#', '2')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 #define K_C_HOME TERMCAP2KEY(KS_EXTRA, KE_C_HOME)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 #define K_S_END TERMCAP2KEY('*', '7')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 #define K_C_END TERMCAP2KEY(KS_EXTRA, KE_C_END)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 #define K_TAB TERMCAP2KEY(KS_EXTRA, KE_TAB)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 #define K_S_TAB TERMCAP2KEY('k', 'B')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 /* extra set of function keys F1-F4, for vt100 compatible xterm */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 #define K_XF1 TERMCAP2KEY(KS_EXTRA, KE_XF1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 #define K_XF2 TERMCAP2KEY(KS_EXTRA, KE_XF2)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 #define K_XF3 TERMCAP2KEY(KS_EXTRA, KE_XF3)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 #define K_XF4 TERMCAP2KEY(KS_EXTRA, KE_XF4)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279
180
7e70fc748752 updated for version 7.0056
vimboss
parents: 179
diff changeset
280 /* extra set of cursor keys for vt100 compatible xterm */
7e70fc748752 updated for version 7.0056
vimboss
parents: 179
diff changeset
281 #define K_XUP TERMCAP2KEY(KS_EXTRA, KE_XUP)
7e70fc748752 updated for version 7.0056
vimboss
parents: 179
diff changeset
282 #define K_XDOWN TERMCAP2KEY(KS_EXTRA, KE_XDOWN)
7e70fc748752 updated for version 7.0056
vimboss
parents: 179
diff changeset
283 #define K_XLEFT TERMCAP2KEY(KS_EXTRA, KE_XLEFT)
7e70fc748752 updated for version 7.0056
vimboss
parents: 179
diff changeset
284 #define K_XRIGHT TERMCAP2KEY(KS_EXTRA, KE_XRIGHT)
7e70fc748752 updated for version 7.0056
vimboss
parents: 179
diff changeset
285
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 #define K_F1 TERMCAP2KEY('k', '1') /* function keys */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 #define K_F2 TERMCAP2KEY('k', '2')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 #define K_F3 TERMCAP2KEY('k', '3')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 #define K_F4 TERMCAP2KEY('k', '4')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 #define K_F5 TERMCAP2KEY('k', '5')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 #define K_F6 TERMCAP2KEY('k', '6')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 #define K_F7 TERMCAP2KEY('k', '7')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 #define K_F8 TERMCAP2KEY('k', '8')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 #define K_F9 TERMCAP2KEY('k', '9')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 #define K_F10 TERMCAP2KEY('k', ';')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 #define K_F11 TERMCAP2KEY('F', '1')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 #define K_F12 TERMCAP2KEY('F', '2')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 #define K_F13 TERMCAP2KEY('F', '3')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 #define K_F14 TERMCAP2KEY('F', '4')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 #define K_F15 TERMCAP2KEY('F', '5')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 #define K_F16 TERMCAP2KEY('F', '6')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 #define K_F17 TERMCAP2KEY('F', '7')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 #define K_F18 TERMCAP2KEY('F', '8')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 #define K_F19 TERMCAP2KEY('F', '9')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 #define K_F20 TERMCAP2KEY('F', 'A')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 #define K_F21 TERMCAP2KEY('F', 'B')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 #define K_F22 TERMCAP2KEY('F', 'C')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 #define K_F23 TERMCAP2KEY('F', 'D')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 #define K_F24 TERMCAP2KEY('F', 'E')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 #define K_F25 TERMCAP2KEY('F', 'F')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 #define K_F26 TERMCAP2KEY('F', 'G')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 #define K_F27 TERMCAP2KEY('F', 'H')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 #define K_F28 TERMCAP2KEY('F', 'I')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 #define K_F29 TERMCAP2KEY('F', 'J')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 #define K_F30 TERMCAP2KEY('F', 'K')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 #define K_F31 TERMCAP2KEY('F', 'L')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 #define K_F32 TERMCAP2KEY('F', 'M')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 #define K_F33 TERMCAP2KEY('F', 'N')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 #define K_F34 TERMCAP2KEY('F', 'O')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 #define K_F35 TERMCAP2KEY('F', 'P')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324 #define K_F36 TERMCAP2KEY('F', 'Q')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 #define K_F37 TERMCAP2KEY('F', 'R')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 /* extra set of shifted function keys F1-F4, for vt100 compatible xterm */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 #define K_S_XF1 TERMCAP2KEY(KS_EXTRA, KE_S_XF1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 #define K_S_XF2 TERMCAP2KEY(KS_EXTRA, KE_S_XF2)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 #define K_S_XF3 TERMCAP2KEY(KS_EXTRA, KE_S_XF3)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331 #define K_S_XF4 TERMCAP2KEY(KS_EXTRA, KE_S_XF4)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 #define K_S_F1 TERMCAP2KEY(KS_EXTRA, KE_S_F1) /* shifted func. keys */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 #define K_S_F2 TERMCAP2KEY(KS_EXTRA, KE_S_F2)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 #define K_S_F3 TERMCAP2KEY(KS_EXTRA, KE_S_F3)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 #define K_S_F4 TERMCAP2KEY(KS_EXTRA, KE_S_F4)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 #define K_S_F5 TERMCAP2KEY(KS_EXTRA, KE_S_F5)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 #define K_S_F6 TERMCAP2KEY(KS_EXTRA, KE_S_F6)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 #define K_S_F7 TERMCAP2KEY(KS_EXTRA, KE_S_F7)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 #define K_S_F8 TERMCAP2KEY(KS_EXTRA, KE_S_F8)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 #define K_S_F9 TERMCAP2KEY(KS_EXTRA, KE_S_F9)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 #define K_S_F10 TERMCAP2KEY(KS_EXTRA, KE_S_F10)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 #define K_S_F11 TERMCAP2KEY(KS_EXTRA, KE_S_F11)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 #define K_S_F12 TERMCAP2KEY(KS_EXTRA, KE_S_F12)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 #define K_S_F13 TERMCAP2KEY(KS_EXTRA, KE_S_F13)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 #define K_S_F14 TERMCAP2KEY(KS_EXTRA, KE_S_F14)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 #define K_S_F15 TERMCAP2KEY(KS_EXTRA, KE_S_F15)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 #define K_S_F16 TERMCAP2KEY(KS_EXTRA, KE_S_F16)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 #define K_S_F17 TERMCAP2KEY(KS_EXTRA, KE_S_F17)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 #define K_S_F18 TERMCAP2KEY(KS_EXTRA, KE_S_F18)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 #define K_S_F19 TERMCAP2KEY(KS_EXTRA, KE_S_F19)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 #define K_S_F20 TERMCAP2KEY(KS_EXTRA, KE_S_F20)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 #define K_S_F21 TERMCAP2KEY(KS_EXTRA, KE_S_F21)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 #define K_S_F22 TERMCAP2KEY(KS_EXTRA, KE_S_F22)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 #define K_S_F23 TERMCAP2KEY(KS_EXTRA, KE_S_F23)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 #define K_S_F24 TERMCAP2KEY(KS_EXTRA, KE_S_F24)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 #define K_S_F25 TERMCAP2KEY(KS_EXTRA, KE_S_F25)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 #define K_S_F26 TERMCAP2KEY(KS_EXTRA, KE_S_F26)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 #define K_S_F27 TERMCAP2KEY(KS_EXTRA, KE_S_F27)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 #define K_S_F28 TERMCAP2KEY(KS_EXTRA, KE_S_F28)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 #define K_S_F29 TERMCAP2KEY(KS_EXTRA, KE_S_F29)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 #define K_S_F30 TERMCAP2KEY(KS_EXTRA, KE_S_F30)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 #define K_S_F31 TERMCAP2KEY(KS_EXTRA, KE_S_F31)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 #define K_S_F32 TERMCAP2KEY(KS_EXTRA, KE_S_F32)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 #define K_S_F33 TERMCAP2KEY(KS_EXTRA, KE_S_F33)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 #define K_S_F34 TERMCAP2KEY(KS_EXTRA, KE_S_F34)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 #define K_S_F35 TERMCAP2KEY(KS_EXTRA, KE_S_F35)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 #define K_S_F36 TERMCAP2KEY(KS_EXTRA, KE_S_F36)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 #define K_S_F37 TERMCAP2KEY(KS_EXTRA, KE_S_F37)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 #define K_HELP TERMCAP2KEY('%', '1')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 #define K_UNDO TERMCAP2KEY('&', '8')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 #define K_BS TERMCAP2KEY('k', 'b')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 #define K_INS TERMCAP2KEY('k', 'I')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 #define K_KINS TERMCAP2KEY(KS_EXTRA, KE_KINS)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 #define K_DEL TERMCAP2KEY('k', 'D')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 #define K_KDEL TERMCAP2KEY(KS_EXTRA, KE_KDEL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 #define K_HOME TERMCAP2KEY('k', 'h')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 #define K_KHOME TERMCAP2KEY('K', '1') /* keypad home (upper left) */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385 #define K_XHOME TERMCAP2KEY(KS_EXTRA, KE_XHOME)
230
9281a51ca7a2 updated for version 7.0064
vimboss
parents: 203
diff changeset
386 #define K_ZHOME TERMCAP2KEY(KS_EXTRA, KE_ZHOME)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 #define K_END TERMCAP2KEY('@', '7')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 #define K_KEND TERMCAP2KEY('K', '4') /* keypad end (lower left) */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 #define K_XEND TERMCAP2KEY(KS_EXTRA, KE_XEND)
230
9281a51ca7a2 updated for version 7.0064
vimboss
parents: 203
diff changeset
390 #define K_ZEND TERMCAP2KEY(KS_EXTRA, KE_ZEND)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391 #define K_PAGEUP TERMCAP2KEY('k', 'P')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392 #define K_PAGEDOWN TERMCAP2KEY('k', 'N')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 #define K_KPAGEUP TERMCAP2KEY('K', '3') /* keypad pageup (upper R.) */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 #define K_KPAGEDOWN TERMCAP2KEY('K', '5') /* keypad pagedown (lower R.) */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 #define K_KPLUS TERMCAP2KEY('K', '6') /* keypad plus */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397 #define K_KMINUS TERMCAP2KEY('K', '7') /* keypad minus */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 #define K_KDIVIDE TERMCAP2KEY('K', '8') /* keypad / */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 #define K_KMULTIPLY TERMCAP2KEY('K', '9') /* keypad * */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400 #define K_KENTER TERMCAP2KEY('K', 'A') /* keypad Enter */
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
401 #define K_KPOINT TERMCAP2KEY('K', 'B') /* keypad . or ,*/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 #define K_K0 TERMCAP2KEY('K', 'C') /* keypad 0 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 #define K_K1 TERMCAP2KEY('K', 'D') /* keypad 1 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 #define K_K2 TERMCAP2KEY('K', 'E') /* keypad 2 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 #define K_K3 TERMCAP2KEY('K', 'F') /* keypad 3 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 #define K_K4 TERMCAP2KEY('K', 'G') /* keypad 4 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 #define K_K5 TERMCAP2KEY('K', 'H') /* keypad 5 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 #define K_K6 TERMCAP2KEY('K', 'I') /* keypad 6 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410 #define K_K7 TERMCAP2KEY('K', 'J') /* keypad 7 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
411 #define K_K8 TERMCAP2KEY('K', 'K') /* keypad 8 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412 #define K_K9 TERMCAP2KEY('K', 'L') /* keypad 9 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 #define K_MOUSE TERMCAP2KEY(KS_MOUSE, KE_FILLER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 #define K_MENU TERMCAP2KEY(KS_MENU, KE_FILLER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416 #define K_VER_SCROLLBAR TERMCAP2KEY(KS_VER_SCROLLBAR, KE_FILLER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 #define K_HOR_SCROLLBAR TERMCAP2KEY(KS_HOR_SCROLLBAR, KE_FILLER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 #define K_NETTERM_MOUSE TERMCAP2KEY(KS_NETTERM_MOUSE, KE_FILLER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 #define K_DEC_MOUSE TERMCAP2KEY(KS_DEC_MOUSE, KE_FILLER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 #define K_JSBTERM_MOUSE TERMCAP2KEY(KS_JSBTERM_MOUSE, KE_FILLER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 #define K_PTERM_MOUSE TERMCAP2KEY(KS_PTERM_MOUSE, KE_FILLER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 #define K_SELECT TERMCAP2KEY(KS_SELECT, KE_FILLER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 #define K_TEAROFF TERMCAP2KEY(KS_TEAROFF, KE_FILLER)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 * Symbols for pseudo keys which are translated from the real key symbols
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 * above.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431 #define K_LEFTMOUSE TERMCAP2KEY(KS_EXTRA, KE_LEFTMOUSE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432 #define K_LEFTMOUSE_NM TERMCAP2KEY(KS_EXTRA, KE_LEFTMOUSE_NM)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 #define K_LEFTDRAG TERMCAP2KEY(KS_EXTRA, KE_LEFTDRAG)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434 #define K_LEFTRELEASE TERMCAP2KEY(KS_EXTRA, KE_LEFTRELEASE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435 #define K_LEFTRELEASE_NM TERMCAP2KEY(KS_EXTRA, KE_LEFTRELEASE_NM)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 #define K_MIDDLEMOUSE TERMCAP2KEY(KS_EXTRA, KE_MIDDLEMOUSE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 #define K_MIDDLEDRAG TERMCAP2KEY(KS_EXTRA, KE_MIDDLEDRAG)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 #define K_MIDDLERELEASE TERMCAP2KEY(KS_EXTRA, KE_MIDDLERELEASE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439 #define K_RIGHTMOUSE TERMCAP2KEY(KS_EXTRA, KE_RIGHTMOUSE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 #define K_RIGHTDRAG TERMCAP2KEY(KS_EXTRA, KE_RIGHTDRAG)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441 #define K_RIGHTRELEASE TERMCAP2KEY(KS_EXTRA, KE_RIGHTRELEASE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442 #define K_X1MOUSE TERMCAP2KEY(KS_EXTRA, KE_X1MOUSE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
443 #define K_X1MOUSE TERMCAP2KEY(KS_EXTRA, KE_X1MOUSE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
444 #define K_X1DRAG TERMCAP2KEY(KS_EXTRA, KE_X1DRAG)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445 #define K_X1RELEASE TERMCAP2KEY(KS_EXTRA, KE_X1RELEASE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446 #define K_X2MOUSE TERMCAP2KEY(KS_EXTRA, KE_X2MOUSE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 #define K_X2DRAG TERMCAP2KEY(KS_EXTRA, KE_X2DRAG)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 #define K_X2RELEASE TERMCAP2KEY(KS_EXTRA, KE_X2RELEASE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 #define K_IGNORE TERMCAP2KEY(KS_EXTRA, KE_IGNORE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452 #define K_SNIFF TERMCAP2KEY(KS_EXTRA, KE_SNIFF)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454 #define K_MOUSEDOWN TERMCAP2KEY(KS_EXTRA, KE_MOUSEDOWN)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
455 #define K_MOUSEUP TERMCAP2KEY(KS_EXTRA, KE_MOUSEUP)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457 #define K_CSI TERMCAP2KEY(KS_EXTRA, KE_CSI)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 #define K_SNR TERMCAP2KEY(KS_EXTRA, KE_SNR)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459 #define K_PLUG TERMCAP2KEY(KS_EXTRA, KE_PLUG)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460 #define K_CMDWIN TERMCAP2KEY(KS_EXTRA, KE_CMDWIN)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
461
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
462 #define K_DROP TERMCAP2KEY(KS_EXTRA, KE_DROP)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463
203
80000fb16feb updated for version 7.0060
vimboss
parents: 180
diff changeset
464 #define K_CURSORHOLD TERMCAP2KEY(KS_EXTRA, KE_CURSORHOLD)
80000fb16feb updated for version 7.0060
vimboss
parents: 180
diff changeset
465
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
466 /* Bits for modifier mask */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467 /* 0x01 cannot be used, because the modifier must be 0x02 or higher */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468 #define MOD_MASK_SHIFT 0x02
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469 #define MOD_MASK_CTRL 0x04
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 #define MOD_MASK_ALT 0x08 /* aka META */
179
7fd70926e2e1 updated for version 7.0055
vimboss
parents: 36
diff changeset
471 #define MOD_MASK_META 0x10 /* META when it's different from ALT */
7fd70926e2e1 updated for version 7.0055
vimboss
parents: 36
diff changeset
472 #define MOD_MASK_2CLICK 0x20 /* use MOD_MASK_MULTI_CLICK */
7fd70926e2e1 updated for version 7.0055
vimboss
parents: 36
diff changeset
473 #define MOD_MASK_3CLICK 0x40 /* use MOD_MASK_MULTI_CLICK */
7fd70926e2e1 updated for version 7.0055
vimboss
parents: 36
diff changeset
474 #define MOD_MASK_4CLICK 0x60 /* use MOD_MASK_MULTI_CLICK */
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475 #ifdef MACOS
179
7fd70926e2e1 updated for version 7.0055
vimboss
parents: 36
diff changeset
476 # define MOD_MASK_CMD 0x80
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
478
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
479 #define MOD_MASK_MULTI_CLICK (MOD_MASK_2CLICK|MOD_MASK_3CLICK|MOD_MASK_4CLICK)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
480
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
481 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
482 * The length of the longest special key name, including modifiers.
179
7fd70926e2e1 updated for version 7.0055
vimboss
parents: 36
diff changeset
483 * Current longest is <M-C-S-T-4-MiddleRelease> (length includes '<' and '>').
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484 */
179
7fd70926e2e1 updated for version 7.0055
vimboss
parents: 36
diff changeset
485 #define MAX_KEY_NAME_LEN 25
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
486
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 /* Maximum length of a special key event as tokens. This includes modifiers.
179
7fd70926e2e1 updated for version 7.0055
vimboss
parents: 36
diff changeset
488 * The longest event is something like <M-C-S-T-4-LeftDrag> which would be the
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 * following string of tokens:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490 *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
491 * <K_SPECIAL> <KS_MODIFIER> bitmask <K_SPECIAL> <KS_EXTRA> <KT_LEFTDRAG>.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
492 *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
493 * This is a total of 6 tokens, and is currently the longest one possible.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
494 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
495 #define MAX_KEY_CODE_LEN 6