diff options
| author | Paul Saab <ps@FreeBSD.org> | 2000-05-22 09:53:22 +0000 | 
|---|---|---|
| committer | Paul Saab <ps@FreeBSD.org> | 2000-05-22 09:53:22 +0000 | 
| commit | a5f0fb151d90effe79714de0fa059954725fe57f (patch) | |
| tree | 27b16fc210b9a302c9e74f90e36a9b5ed21e6300 /contrib/less/lesskey.h | |
Diffstat (limited to 'contrib/less/lesskey.h')
| -rw-r--r-- | contrib/less/lesskey.h | 40 | 
1 files changed, 40 insertions, 0 deletions
| diff --git a/contrib/less/lesskey.h b/contrib/less/lesskey.h new file mode 100644 index 0000000000000..cd86163af6ed1 --- /dev/null +++ b/contrib/less/lesskey.h @@ -0,0 +1,40 @@ +/* + * Copyright (C) 1984-2000  Mark Nudelman + * + * You may distribute under the terms of either the GNU General Public + * License or the Less License, as specified in the README file. + * + * For more information about less, or for information on how to  + * contact the author, see the README file. + */ + + +/* + * Format of a lesskey file: + * + *	LESSKEY_MAGIC (4 bytes) + *	 sections... + *	END_LESSKEY_MAGIC (4 bytes) + * + * Each section is: + * + *	section_MAGIC (1 byte) + *	section_length (2 bytes) + *	key table (section_length bytes) + */ +#define	C0_LESSKEY_MAGIC	'\0' +#define	C1_LESSKEY_MAGIC	'M' +#define	C2_LESSKEY_MAGIC	'+' +#define	C3_LESSKEY_MAGIC	'G' + +#define	CMD_SECTION		'c' +#define	EDIT_SECTION		'e' +#define	VAR_SECTION		'v' +#define	END_SECTION		'x' + +#define	C0_END_LESSKEY_MAGIC	'E' +#define	C1_END_LESSKEY_MAGIC	'n' +#define	C2_END_LESSKEY_MAGIC	'd' + +/* */ +#define	KRADIX		64 | 
