~ubuntu-branches/ubuntu/quantal/less/quantal

« back to all changes in this revision

Viewing changes to lesskey.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Schoepf
  • Date: 2002-04-04 16:43:52 UTC
  • Revision ID: james.westby@ubuntu.com-20020404164352-qldq048yoc7x5sd5
Tags: upstream-374
ImportĀ upstreamĀ versionĀ 374

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 1984-2000  Mark Nudelman
 
3
 *
 
4
 * You may distribute under the terms of either the GNU General Public
 
5
 * License or the Less License, as specified in the README file.
 
6
 *
 
7
 * For more information about less, or for information on how to 
 
8
 * contact the author, see the README file.
 
9
 */
 
10
 
 
11
 
 
12
/*
 
13
 * Format of a lesskey file:
 
14
 *
 
15
 *      LESSKEY_MAGIC (4 bytes)
 
16
 *       sections...
 
17
 *      END_LESSKEY_MAGIC (4 bytes)
 
18
 *
 
19
 * Each section is:
 
20
 *
 
21
 *      section_MAGIC (1 byte)
 
22
 *      section_length (2 bytes)
 
23
 *      key table (section_length bytes)
 
24
 */
 
25
#define C0_LESSKEY_MAGIC        '\0'
 
26
#define C1_LESSKEY_MAGIC        'M'
 
27
#define C2_LESSKEY_MAGIC        '+'
 
28
#define C3_LESSKEY_MAGIC        'G'
 
29
 
 
30
#define CMD_SECTION             'c'
 
31
#define EDIT_SECTION            'e'
 
32
#define VAR_SECTION             'v'
 
33
#define END_SECTION             'x'
 
34
 
 
35
#define C0_END_LESSKEY_MAGIC    'E'
 
36
#define C1_END_LESSKEY_MAGIC    'n'
 
37
#define C2_END_LESSKEY_MAGIC    'd'
 
38
 
 
39
/* */
 
40
#define KRADIX          64