1238730Sdelphij/* 2369759Sgit2svn * Copyright (C) 1984-2021 Mark Nudelman 3238730Sdelphij * 4238730Sdelphij * You may distribute under the terms of either the GNU General Public 5238730Sdelphij * License or the Less License, as specified in the README file. 6238730Sdelphij * 7238730Sdelphij * For more information, see the README file. 8238730Sdelphij */ 960786Sps 1060786Sps 1160786Sps/* 1260786Sps * Format of a lesskey file: 1360786Sps * 14369759Sgit2svn * LESSKEY_MAGIC (4 bytes) 15369759Sgit2svn * sections... 16369759Sgit2svn * END_LESSKEY_MAGIC (4 bytes) 1760786Sps * 1860786Sps * Each section is: 1960786Sps * 20369759Sgit2svn * section_MAGIC (1 byte) 21369759Sgit2svn * section_length (2 bytes) 22369759Sgit2svn * key table (section_length bytes) 2360786Sps */ 24369759Sgit2svn#define C0_LESSKEY_MAGIC '\0' 25369759Sgit2svn#define C1_LESSKEY_MAGIC 'M' 26369759Sgit2svn#define C2_LESSKEY_MAGIC '+' 27369759Sgit2svn#define C3_LESSKEY_MAGIC 'G' 2860786Sps 29369759Sgit2svn#define CMD_SECTION 'c' 30369759Sgit2svn#define EDIT_SECTION 'e' 31369759Sgit2svn#define VAR_SECTION 'v' 32369759Sgit2svn#define END_SECTION 'x' 3360786Sps 34369759Sgit2svn#define C0_END_LESSKEY_MAGIC 'E' 35369759Sgit2svn#define C1_END_LESSKEY_MAGIC 'n' 36369759Sgit2svn#define C2_END_LESSKEY_MAGIC 'd' 3760786Sps 3860786Sps/* */ 39369759Sgit2svn#define KRADIX 64 40