Annotation of src/usr.bin/less/lesskey.h, Revision 1.1
1.1 ! etheisen 1: /*
! 2: * Format of a lesskey file:
! 3: *
! 4: * LESSKEY_MAGIC (4 bytes)
! 5: * sections...
! 6: * END_LESSKEY_MAGIC (4 bytes)
! 7: *
! 8: * Each section is:
! 9: *
! 10: * section_MAGIC (1 byte)
! 11: * section_length (2 bytes)
! 12: * key table (section_length bytes)
! 13: */
! 14: #define C0_LESSKEY_MAGIC '\0'
! 15: #define C1_LESSKEY_MAGIC 'M'
! 16: #define C2_LESSKEY_MAGIC '+'
! 17: #define C3_LESSKEY_MAGIC 'G'
! 18:
! 19: #define CMD_SECTION 'c'
! 20: #define EDIT_SECTION 'e'
! 21: #define END_SECTION 'x'
! 22:
! 23: #define C0_END_LESSKEY_MAGIC 'E'
! 24: #define C1_END_LESSKEY_MAGIC 'n'
! 25: #define C2_END_LESSKEY_MAGIC 'd'
! 26:
! 27: /* */
! 28: #define KRADIX 64