1 /* $NetBSD: cmd.h,v 1.3 2013/09/04 19:44:21 tron Exp $ */
4 * Copyright (C) 1984-2012 Mark Nudelman
6 * You may distribute under the terms of either the GNU General Public
7 * License or the Less License, as specified in the README file.
9 * For more information, see the README file.
13 #define MAX_USERCMD 1000
21 #define A_DISP_OPTION 7
34 #define A_NEXT_FILE 20
37 #define A_PREV_FILE 23
49 #define A_F_BRACKET 35
50 #define A_B_BRACKET 36
52 #define A_INDEX_FILE 38
53 #define A_UNDO_SEARCH 39
54 #define A_FF_SCREEN 40
57 #define A_AGAIN_SEARCH 43
58 #define A_T_AGAIN_SEARCH 44
59 #define A_REVERSE_SEARCH 45
60 #define A_T_REVERSE_SEARCH 46
61 #define A_OPT_TOGGLE 47
63 #define A_OPT_UNSET 49
64 #define A_F_FOREVER 50
66 #define A_REMOVE_FILE 52
70 #define A_F_UNTIL_HILITE 56
73 #define A_NOACTION 101
74 #define A_UINVALID 102
75 #define A_END_LIST 103
76 #define A_SPECIAL_KEY 104
83 /* Line editing characters */
85 #define EC_BACKSPACE 1
95 #define EC_W_BACKSPACE 11
96 #define EC_W_DELETE 12
100 #define EC_F_COMPLETE 17
101 #define EC_B_COMPLETE 18
102 #define EC_LITERAL 19
105 #define EC_NOACTION 101
106 #define EC_UINVALID 102
108 /* Flags for editchar() */
110 #define EC_NOHISTORY 02
111 #define EC_NOCOMPLETE 04
112 #define EC_NORIGHTLEFT 010
114 /* Environment variable stuff */
117 /* Special keys (keys which output different strings on different terminals) */
118 #define SK_SPECIAL_KEY CONTROL('K')
119 #define SK_RIGHT_ARROW 1
120 #define SK_LEFT_ARROW 2
121 #define SK_UP_ARROW 3
122 #define SK_DOWN_ARROW 4
124 #define SK_PAGE_DOWN 6
129 #define SK_CTL_LEFT_ARROW 11
130 #define SK_CTL_RIGHT_ARROW 12
131 #define SK_CTL_DELETE 13
133 #define SK_BACKTAB 15
134 #define SK_CTL_BACKSPACE 16
135 #define SK_CONTROL_K 40