e0555382b4
v375 4/7/02 Fix searching for SGR sequences; fix SECURE build; add SGR support to DJGPP version (thanks to Eli Zaretskii). v376 6/10/02 Fix bug in overstriking mulitbyte UTF-8 characters (thanks to Jungshik Shin). Posted to Web page. ----------------------------------------------------------------- v377 9/10/02 Fix bug in Windows version when file contains CR; fix bug in search highlights with -R; make initial buffer limit really be 64K not unlimited. v378 9/30/02 Misc bug fixes and compiler warning cleanup. Posted to Web page. ----------------------------------------------------------------- v379 11/23/02 Add -L option; fix bug with ctrl-K in lesskey files; improve UTF-8 overstriking and underscore overstriking; fix minor man page problems; change to autoconf 2.54. v380 11/24/02 Make LINENUM same as POSITION. v381 11/28/02 Make -N use 7 columns for line number if possible.
41 lines
877 B
C
41 lines
877 B
C
/*
|
|
* Copyright (C) 1984-2002 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
|