2 * Copyright (C) 1984-2019 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, see the README file.
11 #define MAX_USERCMD 1000
19 #define A_DISP_OPTION 7
32 #define A_NEXT_FILE 20
35 #define A_PREV_FILE 23
47 #define A_F_BRACKET 35
48 #define A_B_BRACKET 36
50 #define A_INDEX_FILE 38
51 #define A_UNDO_SEARCH 39
52 #define A_FF_SCREEN 40
55 #define A_AGAIN_SEARCH 43
56 #define A_T_AGAIN_SEARCH 44
57 #define A_REVERSE_SEARCH 45
58 #define A_T_REVERSE_SEARCH 46
59 #define A_OPT_TOGGLE 47
61 #define A_OPT_UNSET 49
62 #define A_F_FOREVER 50
64 #define A_REMOVE_FILE 52
68 #define A_F_UNTIL_HILITE 56
69 #define A_GOEND_BUF 57
73 #define A_SETMARKBOT 63
74 #define A_X11MOUSE_IN 64
75 #define A_X11MOUSE_IGNORE 65
78 /* Note "X116" refers to extended (1006) X11 mouse reporting. */
79 #define A_X116MOUSE_IN 68
80 #define A_X116MOUSE_IGNORE 69
83 #define A_NOACTION 101
84 #define A_UINVALID 102
85 #define A_END_LIST 103
86 #define A_SPECIAL_KEY 104
93 /* Line editing characters */
95 #define EC_BACKSPACE 1
105 #define EC_W_BACKSPACE 11
106 #define EC_W_DELETE 12
110 #define EC_F_COMPLETE 17
111 #define EC_B_COMPLETE 18
112 #define EC_LITERAL 19
115 #define EC_NOACTION 101
116 #define EC_UINVALID 102
118 /* Flags for editchar() */
120 #define EC_NOHISTORY 02
121 #define EC_NOCOMPLETE 04
122 #define EC_NORIGHTLEFT 010
124 /* Environment variable stuff */
127 /* Special keys (keys which output different strings on different terminals) */
128 #define SK_SPECIAL_KEY CONTROL('K')
129 #define SK_RIGHT_ARROW 1
130 #define SK_LEFT_ARROW 2
131 #define SK_UP_ARROW 3
132 #define SK_DOWN_ARROW 4
134 #define SK_PAGE_DOWN 6
139 #define SK_CTL_LEFT_ARROW 11
140 #define SK_CTL_RIGHT_ARROW 12
141 #define SK_CTL_DELETE 13
143 #define SK_BACKTAB 15
144 #define SK_CTL_BACKSPACE 16
145 #define SK_CONTROL_K 40