2 * Copyright (C) 1984-2009 Mark Nudelman
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.
7 * For more information about less, or for information on how to
8 * contact the author, see the README file.
12 #define MAX_USERCMD 500
20 #define A_DISP_OPTION 7
33 #define A_NEXT_FILE 20
36 #define A_PREV_FILE 23
48 #define A_F_BRACKET 35
49 #define A_B_BRACKET 36
51 #define A_INDEX_FILE 38
52 #define A_UNDO_SEARCH 39
53 #define A_FF_SCREEN 40
56 #define A_AGAIN_SEARCH 43
57 #define A_T_AGAIN_SEARCH 44
58 #define A_REVERSE_SEARCH 45
59 #define A_T_REVERSE_SEARCH 46
60 #define A_OPT_TOGGLE 47
62 #define A_OPT_UNSET 49
63 #define A_F_FOREVER 50
65 #define A_REMOVE_FILE 52
71 #define A_NOACTION 101
72 #define A_UINVALID 102
73 #define A_END_LIST 103
74 #define A_SPECIAL_KEY 104
81 /* Line editting characters */
83 #define EC_BACKSPACE 1
93 #define EC_W_BACKSPACE 11
94 #define EC_W_DELETE 12
98 #define EC_F_COMPLETE 17
99 #define EC_B_COMPLETE 18
100 #define EC_LITERAL 19
102 #define EC_NOACTION 101
103 #define EC_UINVALID 102
105 /* Flags for editchar() */
107 #define EC_NOHISTORY 02
108 #define EC_NOCOMPLETE 04
109 #define EC_NORIGHTLEFT 010
111 /* Environment variable stuff */
114 /* Special keys (keys which output different strings on different terminals) */
115 #define SK_SPECIAL_KEY CONTROL('K')
116 #define SK_RIGHT_ARROW 1
117 #define SK_LEFT_ARROW 2
118 #define SK_UP_ARROW 3
119 #define SK_DOWN_ARROW 4
121 #define SK_PAGE_DOWN 6
126 #define SK_CTL_LEFT_ARROW 11
127 #define SK_CTL_RIGHT_ARROW 12
128 #define SK_CTL_DELETE 13
130 #define SK_BACKTAB 15
131 #define SK_CTL_BACKSPACE 16
132 #define SK_CONTROL_K 40