NetBSD/usr.bin/less/lesskey/lesskey.h

32 lines
640 B
C
Raw Normal View History

1997-09-21 16:22:44 +04:00
/* $NetBSD: lesskey.h,v 1.1.1.3 1997/09/21 12:23:25 mrg Exp $ */
1997-04-22 17:45:39 +04:00
1996-01-22 06:14:17 +03:00
/*
* 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'
1997-04-22 17:45:39 +04:00
#define VAR_SECTION 'v'
1996-01-22 06:14:17 +03:00
#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