1 | /* |
1 | /* |
2 | * $Id: command.h,v 1.10 2004/07/26 18:01:19 root Exp $ |
2 | * command.h |
3 | */ |
3 | */ |
4 | |
4 | |
5 | #ifndef COMMAND_H_ |
5 | #ifndef COMMAND_H_ |
6 | #define COMMAND_H_ |
6 | #define COMMAND_H_ |
7 | |
7 | |
8 | // STRING_MAX __MUST__ not be larger than what CBUFSIZ can hold. |
8 | // STRING_MAX __MUST__ not be larger than what CBUFSIZ can hold. |
9 | #define STRING_MAX 2048 /* max string size for process_rxvt_xterm_seq() */ |
9 | #define STRING_MAX 2048 /* max string size for process_{dcs,osc}_seq () */ |
10 | |
10 | |
11 | #define ESC_ARGS 32 /* max # of args for esc sequences */ |
11 | #define ESC_ARGS 32 /* max # of args for esc sequences */ |
12 | |
|
|
13 | #ifdef OFFIX_DND |
|
|
14 | # define DndFile 2 |
|
|
15 | # define DndDir 5 |
|
|
16 | # define DndLink 7 |
|
|
17 | #endif |
|
|
18 | |
|
|
19 | /* a large REFRESH_PERIOD causes problems with `cat' */ |
|
|
20 | #define REFRESH_PERIOD 2 |
|
|
21 | |
12 | |
22 | #ifndef MULTICLICK_TIME |
13 | #ifndef MULTICLICK_TIME |
23 | # define MULTICLICK_TIME 500 |
14 | # define MULTICLICK_TIME 500 |
24 | #endif |
15 | #endif |
25 | #ifndef SCROLLBAR_INITIAL_DELAY |
16 | #ifndef SCROLLBAR_INITIAL_DELAY |
… | |
… | |
27 | #endif |
18 | #endif |
28 | #ifndef SCROLLBAR_CONTINUOUS_DELAY |
19 | #ifndef SCROLLBAR_CONTINUOUS_DELAY |
29 | # define SCROLLBAR_CONTINUOUS_DELAY 0.05 |
20 | # define SCROLLBAR_CONTINUOUS_DELAY 0.05 |
30 | #endif |
21 | #endif |
31 | |
22 | |
32 | /* |
|
|
33 | * key-strings: if only these keys were standardized <sigh> |
|
|
34 | */ |
|
|
35 | #ifdef LINUX_KEYS |
|
|
36 | # define KS_HOME "\033[1~" /* Home == Find */ |
|
|
37 | # define KS_END "\033[4~" /* End == Select */ |
|
|
38 | #else |
|
|
39 | # define KS_HOME "\033[7~" /* Home */ |
|
|
40 | # define KS_END "\033[8~" /* End */ |
|
|
41 | #endif |
|
|
42 | |
|
|
43 | #ifdef SCROLL_ON_SHIFT |
23 | #ifdef SCROLL_ON_SHIFT |
44 | # define SCROLL_SHIFTKEY (shft) |
24 | # define SCROLL_SHIFTKEY (shft) |
|
|
25 | # define NOSCROLL_SHIFTKEY 0 |
45 | #else |
26 | #else |
46 | # define SCROLL_SHIFTKEY 0 |
27 | # define SCROLL_SHIFTKEY 0 |
|
|
28 | # define NOSCROLL_SHIFTKEY (shft) |
47 | #endif |
29 | #endif |
48 | #ifdef SCROLL_ON_CTRL |
30 | #ifdef SCROLL_ON_CTRL |
49 | # define SCROLL_CTRLKEY (ctrl) |
31 | # define SCROLL_CTRLKEY (ctrl) |
|
|
32 | # define NOSCROLL_CTRLKEY 0 |
50 | #else |
33 | #else |
51 | # define SCROLL_CTRLKEY 0 |
34 | # define SCROLL_CTRLKEY 0 |
|
|
35 | # define NOSCROLL_CTRLKEY (ctrl) |
52 | #endif |
36 | #endif |
53 | #ifdef SCROLL_ON_META |
37 | #ifdef SCROLL_ON_META |
54 | # define SCROLL_METAKEY (meta) |
38 | # define SCROLL_METAKEY (meta) |
|
|
39 | # define NOSCROLL_METAKEY 0 |
55 | #else |
40 | #else |
56 | # define SCROLL_METAKEY 0 |
41 | # define SCROLL_METAKEY 0 |
|
|
42 | # define NOSCROLL_METAKEY (meta) |
57 | #endif |
43 | #endif |
58 | #define IS_SCROLL_MOD (SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) |
44 | #define IS_SCROLL_MOD ((SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) \ |
|
|
45 | && (!NOSCROLL_SHIFTKEY && !NOSCROLL_CTRLKEY && !NOSCROLL_METAKEY)) |
|
|
46 | |
59 | |
47 | |
60 | /* |
48 | /* |
61 | * ESC-Z processing: |
49 | * ESC-Z processing: |
62 | * |
50 | * |
63 | * By stealing a sequence to which other xterms respond, and sending the |
51 | * By stealing a sequence to which other xterms respond, and sending the |
… | |
… | |
79 | #define VT100_ANS "\033[?1;2c" /* vt100 answerback */ |
67 | #define VT100_ANS "\033[?1;2c" /* vt100 answerback */ |
80 | #ifndef ESCZ_ANSWER |
68 | #ifndef ESCZ_ANSWER |
81 | # define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */ |
69 | # define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */ |
82 | #endif |
70 | #endif |
83 | |
71 | |
84 | #include "command.intpro" /* PROTOS for internal routines */ |
|
|
85 | #endif /* _COMMAND_H_ */ |
72 | #endif /* _COMMAND_H_ */ |