xref: /minix3/external/bsd/less/dist/lesskey.h (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1 /*	$NetBSD: lesskey.h,v 1.3 2013/09/04 19:44:21 tron Exp $	*/
2 
3 /*
4  * Copyright (C) 1984-2012  Mark Nudelman
5  *
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.
8  *
9  * For more information, see the README file.
10  */
11 
12 
13 /*
14  * Format of a lesskey file:
15  *
16  *	LESSKEY_MAGIC (4 bytes)
17  *	 sections...
18  *	END_LESSKEY_MAGIC (4 bytes)
19  *
20  * Each section is:
21  *
22  *	section_MAGIC (1 byte)
23  *	section_length (2 bytes)
24  *	key table (section_length bytes)
25  */
26 #define	C0_LESSKEY_MAGIC	'\0'
27 #define	C1_LESSKEY_MAGIC	'M'
28 #define	C2_LESSKEY_MAGIC	'+'
29 #define	C3_LESSKEY_MAGIC	'G'
30 
31 #define	CMD_SECTION		'c'
32 #define	EDIT_SECTION		'e'
33 #define	VAR_SECTION		'v'
34 #define	END_SECTION		'x'
35 
36 #define	C0_END_LESSKEY_MAGIC	'E'
37 #define	C1_END_LESSKEY_MAGIC	'n'
38 #define	C2_END_LESSKEY_MAGIC	'd'
39 
40 /* */
41 #define	KRADIX		64
42