Annotation of src/usr.bin/less/lesskey.h, Revision 1.2
1.2 ! niklas 1: /* $OpenBSD$ */
! 2:
1.1 etheisen 3: /*
4: * Format of a lesskey file:
5: *
6: * LESSKEY_MAGIC (4 bytes)
7: * sections...
8: * END_LESSKEY_MAGIC (4 bytes)
9: *
10: * Each section is:
11: *
12: * section_MAGIC (1 byte)
13: * section_length (2 bytes)
14: * key table (section_length bytes)
15: */
16: #define C0_LESSKEY_MAGIC '\0'
17: #define C1_LESSKEY_MAGIC 'M'
18: #define C2_LESSKEY_MAGIC '+'
19: #define C3_LESSKEY_MAGIC 'G'
20:
21: #define CMD_SECTION 'c'
22: #define EDIT_SECTION 'e'
23: #define END_SECTION 'x'
24:
25: #define C0_END_LESSKEY_MAGIC 'E'
26: #define C1_END_LESSKEY_MAGIC 'n'
27: #define C2_END_LESSKEY_MAGIC 'd'
28:
29: /* */
30: #define KRADIX 64