xref: /freebsd/contrib/less/pckeys.h (revision c77c488926555ca344ae3a417544cf7a720e1de1)
1a5f0fb15SPaul Saab /*
2*c77c4889SXin LI  * Copyright (C) 1984-2024  Mark Nudelman
3a5f0fb15SPaul Saab  *
4a5f0fb15SPaul Saab  * You may distribute under the terms of either the GNU General Public
5a5f0fb15SPaul Saab  * License or the Less License, as specified in the README file.
6a5f0fb15SPaul Saab  *
796e55cc7SXin LI  * For more information, see the README file.
8a5f0fb15SPaul Saab  */
9a5f0fb15SPaul Saab 
10a5f0fb15SPaul Saab 
11a5f0fb15SPaul Saab /*
12a5f0fb15SPaul Saab  * Definitions of keys on the PC.
13a5f0fb15SPaul Saab  * Special (non-ASCII) keys on the PC send a two-byte sequence,
14a5f0fb15SPaul Saab  * where the first byte is 0 and the second is as defined below.
15a5f0fb15SPaul Saab  */
16a5f0fb15SPaul Saab #define PCK_SHIFT_TAB           '\017'
17a5f0fb15SPaul Saab #define PCK_ALT_E               '\022'
18a5f0fb15SPaul Saab #define PCK_CAPS_LOCK           '\072'
19a5f0fb15SPaul Saab #define PCK_F1                  '\073'
20a5f0fb15SPaul Saab #define PCK_NUM_LOCK            '\105'
21a5f0fb15SPaul Saab #define PCK_HOME                '\107'
22a5f0fb15SPaul Saab #define PCK_UP                  '\110'
23a5f0fb15SPaul Saab #define PCK_PAGEUP              '\111'
24a5f0fb15SPaul Saab #define PCK_LEFT                '\113'
25a5f0fb15SPaul Saab #define PCK_RIGHT               '\115'
26a5f0fb15SPaul Saab #define PCK_END                 '\117'
27a5f0fb15SPaul Saab #define PCK_DOWN                '\120'
28a5f0fb15SPaul Saab #define PCK_PAGEDOWN            '\121'
29a5f0fb15SPaul Saab #define PCK_INSERT              '\122'
30a5f0fb15SPaul Saab #define PCK_DELETE              '\123'
31a5f0fb15SPaul Saab #define PCK_CTL_LEFT            '\163'
32a5f0fb15SPaul Saab #define PCK_CTL_RIGHT           '\164'
33a5f0fb15SPaul Saab #define PCK_CTL_DELETE          '\223'
34