1 /* Copyright (c) 1993-2002
2 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
3 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
4 * Copyright (c) 1987 Oliver Laumann
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program (see the file COPYING); if not, write to the
18 * Free Software Foundation, Inc.,
19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
21 ****************************************************************
30 struct term term
[T_N
] =
123 /* keypad/cursorkeys */
140 /* cursor visibility */
145 /* margin handling */
152 /* special settings */
177 { "k0", T_STR
}, KMAPDEF("\033[10~")
178 { "k1", T_STR
}, KMAPDEF("\033OP")
179 { "k2", T_STR
}, KMAPDEF("\033OQ")
180 { "k3", T_STR
}, KMAPDEF("\033OR")
181 { "k4", T_STR
}, KMAPDEF("\033OS")
182 { "k5", T_STR
}, KMAPDEF("\033[15~")
183 { "k6", T_STR
}, KMAPDEF("\033[17~")
184 { "k7", T_STR
}, KMAPDEF("\033[18~")
185 { "k8", T_STR
}, KMAPDEF("\033[19~")
186 { "k9", T_STR
}, KMAPDEF("\033[20~")
187 { "k;", T_STR
}, KMAPDEF("\033[21~")
188 { "F1", T_STR
}, KMAPDEF("\033[23~")
189 { "F2", T_STR
}, KMAPDEF("\033[24~")
190 /* extra keys for vt220 (David.Leonard@it.uq.edu.au) */
206 /* more keys for Andrew A. Chernov (ache@astral.msk.su) */
209 /* define T_BACKTAB */
213 { "kF", T_STR
}, KMAPMDEF("\004")
216 { "kR", T_STR
}, KMAPMDEF("\025")
220 { "*4", T_STR
}, /* kDC */
221 { "*7", T_STR
}, /* kEND */
222 { "#2", T_STR
}, /* kHOM */
223 { "#3", T_STR
}, /* kIC */
224 { "#4", T_STR
}, /* kLFT */
225 { "%c", T_STR
}, /* kNXT */
226 { "%e", T_STR
}, /* kPRV */
227 { "%i", T_STR
}, /* kRIT */
229 /* keys above the cursor */
230 /* define T_NAVIGATE */
231 { "kh", T_STR
}, KMAPDEF("\033[1~") KMAPMDEF("\201")
233 { "kH", T_STR
}, KMAPDEF("\033[4~") KMAPMDEF("\205")
235 { "kN", T_STR
}, KMAPDEF("\033[6~") KMAPMDEF("\006")
236 { "kP", T_STR
}, KMAPDEF("\033[5~") KMAPMDEF("\002")
237 { "kI", T_STR
}, KMAPDEF("\033[2~")
238 /* define T_NAVIGATE_DELETE */
239 { "kD", T_STR
}, KMAPDEF("\033[3~")
241 /* keys that can have two bindings */
242 /* define T_CURSOR */
243 { "ku", T_STR
}, KMAPDEF("\033[A") KMAPADEF("\033OA") KMAPMDEF("\220")
244 { "kd", T_STR
}, KMAPDEF("\033[B") KMAPADEF("\033OB") KMAPMDEF("\216")
245 { "kr", T_STR
}, KMAPDEF("\033[C") KMAPADEF("\033OC") KMAPMDEF("\206")
246 { "kl", T_STR
}, KMAPDEF("\033[D") KMAPADEF("\033OD") KMAPMDEF("\202")
247 /* define T_KEYPAD */
248 { "f0", T_STR
}, KMAPDEF("0") KMAPADEF("\033Op")
249 { "f1", T_STR
}, KMAPDEF("1") KMAPADEF("\033Oq")
250 { "f2", T_STR
}, KMAPDEF("2") KMAPADEF("\033Or")
251 { "f3", T_STR
}, KMAPDEF("3") KMAPADEF("\033Os")
252 { "f4", T_STR
}, KMAPDEF("4") KMAPADEF("\033Ot")
253 { "f5", T_STR
}, KMAPDEF("5") KMAPADEF("\033Ou")
254 { "f6", T_STR
}, KMAPDEF("6") KMAPADEF("\033Ov")
255 { "f7", T_STR
}, KMAPDEF("7") KMAPADEF("\033Ow")
256 { "f8", T_STR
}, KMAPDEF("8") KMAPADEF("\033Ox")
257 { "f9", T_STR
}, KMAPDEF("9") KMAPADEF("\033Oy")
258 { "f+", T_STR
}, KMAPDEF("+") KMAPADEF("\033Ok")
259 { "f-", T_STR
}, KMAPDEF("-") KMAPADEF("\033Om")
260 { "f*", T_STR
}, KMAPDEF("*") KMAPADEF("\033Oj")
261 { "f/", T_STR
}, KMAPDEF("/") KMAPADEF("\033Oo")
262 { "fq", T_STR
}, KMAPDEF("=") KMAPADEF("\033OX")
263 { "f.", T_STR
}, KMAPDEF(".") KMAPADEF("\033On")
264 { "f,", T_STR
}, KMAPDEF(",") KMAPADEF("\033Ol")
265 { "fe", T_STR
}, KMAPDEF("\015") KMAPADEF("\033OM")
266 /* other things related to keycaps */