lesskey.h revision 60786
160786Sps/*
260786Sps * Copyright (C) 1984-2000  Mark Nudelman
360786Sps *
460786Sps * You may distribute under the terms of either the GNU General Public
560786Sps * License or the Less License, as specified in the README file.
660786Sps *
760786Sps * For more information about less, or for information on how to
860786Sps * contact the author, see the README file.
960786Sps */
1060786Sps
1160786Sps
1260786Sps/*
1360786Sps * Format of a lesskey file:
1460786Sps *
1560786Sps *	LESSKEY_MAGIC (4 bytes)
1660786Sps *	 sections...
1760786Sps *	END_LESSKEY_MAGIC (4 bytes)
1860786Sps *
1960786Sps * Each section is:
2060786Sps *
2160786Sps *	section_MAGIC (1 byte)
2260786Sps *	section_length (2 bytes)
2360786Sps *	key table (section_length bytes)
2460786Sps */
2560786Sps#define	C0_LESSKEY_MAGIC	'\0'
2660786Sps#define	C1_LESSKEY_MAGIC	'M'
2760786Sps#define	C2_LESSKEY_MAGIC	'+'
2860786Sps#define	C3_LESSKEY_MAGIC	'G'
2960786Sps
3060786Sps#define	CMD_SECTION		'c'
3160786Sps#define	EDIT_SECTION		'e'
3260786Sps#define	VAR_SECTION		'v'
3360786Sps#define	END_SECTION		'x'
3460786Sps
3560786Sps#define	C0_END_LESSKEY_MAGIC	'E'
3660786Sps#define	C1_END_LESSKEY_MAGIC	'n'
3760786Sps#define	C2_END_LESSKEY_MAGIC	'd'
3860786Sps
3960786Sps/* */
4060786Sps#define	KRADIX		64
41