etc/services - sync with NetBSD-8
[minix.git] / external / bsd / less / dist / lesskey.h
blob0fe7a03dea1cd4842d67a486f3d08370614b246b
1 /* $NetBSD: lesskey.h,v 1.3 2013/09/04 19:44:21 tron Exp $ */
3 /*
4 * Copyright (C) 1984-2012 Mark Nudelman
6 * You may distribute under the terms of either the GNU General Public
7 * License or the Less License, as specified in the README file.
9 * For more information, see the README file.
14 * Format of a lesskey file:
16 * LESSKEY_MAGIC (4 bytes)
17 * sections...
18 * END_LESSKEY_MAGIC (4 bytes)
20 * Each section is:
22 * section_MAGIC (1 byte)
23 * section_length (2 bytes)
24 * key table (section_length bytes)
26 #define C0_LESSKEY_MAGIC '\0'
27 #define C1_LESSKEY_MAGIC 'M'
28 #define C2_LESSKEY_MAGIC '+'
29 #define C3_LESSKEY_MAGIC 'G'
31 #define CMD_SECTION 'c'
32 #define EDIT_SECTION 'e'
33 #define VAR_SECTION 'v'
34 #define END_SECTION 'x'
36 #define C0_END_LESSKEY_MAGIC 'E'
37 #define C1_END_LESSKEY_MAGIC 'n'
38 #define C2_END_LESSKEY_MAGIC 'd'
40 /* */
41 #define KRADIX 64