1 /* Copyright (c) 2008, 2009
2 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
3 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
4 * Micah Cowan (micah@cowan.name)
5 * Sadrul Habib Chowdhury (sadrul@users.sourceforge.net)
6 * Copyright (c) 1993-2002, 2003, 2005, 2006, 2007
7 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
8 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
9 * Copyright (c) 1987 Oliver Laumann
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 3, or (at your option)
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program (see the file COPYING); if not, see
23 * http://www.gnu.org/licenses/, or contact Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
26 ****************************************************************
35 struct term term
[T_N
] =
128 /* keypad/cursorkeys */
145 /* cursor visibility */
150 /* margin handling */
157 /* special settings */
182 { "k0", T_STR
}, KMAPDEF("\033[10~")
183 { "k1", T_STR
}, KMAPDEF("\033OP")
184 { "k2", T_STR
}, KMAPDEF("\033OQ")
185 { "k3", T_STR
}, KMAPDEF("\033OR")
186 { "k4", T_STR
}, KMAPDEF("\033OS")
187 { "k5", T_STR
}, KMAPDEF("\033[15~")
188 { "k6", T_STR
}, KMAPDEF("\033[17~")
189 { "k7", T_STR
}, KMAPDEF("\033[18~")
190 { "k8", T_STR
}, KMAPDEF("\033[19~")
191 { "k9", T_STR
}, KMAPDEF("\033[20~")
192 { "k;", T_STR
}, KMAPDEF("\033[21~")
193 { "F1", T_STR
}, KMAPDEF("\033[23~")
194 { "F2", T_STR
}, KMAPDEF("\033[24~")
195 /* extra keys for vt220 (David.Leonard@it.uq.edu.au) */
211 /* more keys for Andrew A. Chernov (ache@astral.msk.su) */
214 /* define T_BACKTAB */
218 { "kF", T_STR
}, KMAPMDEF("\004")
221 { "kR", T_STR
}, KMAPMDEF("\025")
225 { "*4", T_STR
}, /* kDC */
226 { "*7", T_STR
}, /* kEND */
227 { "#2", T_STR
}, /* kHOM */
228 { "#3", T_STR
}, /* kIC */
229 { "#4", T_STR
}, /* kLFT */
230 { "%c", T_STR
}, /* kNXT */
231 { "%e", T_STR
}, /* kPRV */
232 { "%i", T_STR
}, /* kRIT */
234 /* keys above the cursor */
235 /* define T_NAVIGATE */
236 { "kh", T_STR
}, KMAPDEF("\033[1~") KMAPMDEF("\201")
238 { "kH", T_STR
}, KMAPDEF("\033[4~") KMAPMDEF("\205")
240 { "kN", T_STR
}, KMAPDEF("\033[6~") KMAPMDEF("\006")
241 { "kP", T_STR
}, KMAPDEF("\033[5~") KMAPMDEF("\002")
242 { "kI", T_STR
}, KMAPDEF("\033[2~")
243 /* define T_NAVIGATE_DELETE */
244 { "kD", T_STR
}, KMAPDEF("\033[3~")
246 /* keys that can have two bindings */
247 /* define T_CURSOR */
248 { "ku", T_STR
}, KMAPDEF("\033[A") KMAPADEF("\033OA") KMAPMDEF("\220")
249 { "kd", T_STR
}, KMAPDEF("\033[B") KMAPADEF("\033OB") KMAPMDEF("\216")
250 { "kr", T_STR
}, KMAPDEF("\033[C") KMAPADEF("\033OC") KMAPMDEF("\206")
251 { "kl", T_STR
}, KMAPDEF("\033[D") KMAPADEF("\033OD") KMAPMDEF("\202")
252 /* define T_KEYPAD */
253 { "f0", T_STR
}, KMAPDEF("0") KMAPADEF("\033Op")
254 { "f1", T_STR
}, KMAPDEF("1") KMAPADEF("\033Oq")
255 { "f2", T_STR
}, KMAPDEF("2") KMAPADEF("\033Or")
256 { "f3", T_STR
}, KMAPDEF("3") KMAPADEF("\033Os")
257 { "f4", T_STR
}, KMAPDEF("4") KMAPADEF("\033Ot")
258 { "f5", T_STR
}, KMAPDEF("5") KMAPADEF("\033Ou")
259 { "f6", T_STR
}, KMAPDEF("6") KMAPADEF("\033Ov")
260 { "f7", T_STR
}, KMAPDEF("7") KMAPADEF("\033Ow")
261 { "f8", T_STR
}, KMAPDEF("8") KMAPADEF("\033Ox")
262 { "f9", T_STR
}, KMAPDEF("9") KMAPADEF("\033Oy")
263 { "f+", T_STR
}, KMAPDEF("+") KMAPADEF("\033Ok")
264 { "f-", T_STR
}, KMAPDEF("-") KMAPADEF("\033Om")
265 { "f*", T_STR
}, KMAPDEF("*") KMAPADEF("\033Oj")
266 { "f/", T_STR
}, KMAPDEF("/") KMAPADEF("\033Oo")
267 { "fq", T_STR
}, KMAPDEF("=") KMAPADEF("\033OX")
268 { "f.", T_STR
}, KMAPDEF(".") KMAPADEF("\033On")
269 { "f,", T_STR
}, KMAPDEF(",") KMAPADEF("\033Ol")
270 { "fe", T_STR
}, KMAPDEF("\015") KMAPADEF("\033OM")
271 /* other things related to keycaps */