1 | /* |
1 | /* |
2 | * $Id: command.h,v 1.3 2003/12/05 04:05:13 pcg 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 | #define STRING_MAX 512 /* max string size for process_rxvt_xterm_seq() */ |
|
|
9 | #define ESC_ARGS 32 /* max # of args for esc sequences */ |
8 | #define ESC_ARGS 32 /* max # of args for esc sequences */ |
10 | |
|
|
11 | #ifdef OFFIX_DND |
|
|
12 | # define DndFile 2 |
|
|
13 | # define DndDir 5 |
|
|
14 | # define DndLink 7 |
|
|
15 | #endif |
|
|
16 | |
|
|
17 | /* a large REFRESH_PERIOD causes problems with `cat' */ |
|
|
18 | #define REFRESH_PERIOD 1 |
|
|
19 | |
9 | |
20 | #ifndef MULTICLICK_TIME |
10 | #ifndef MULTICLICK_TIME |
21 | # define MULTICLICK_TIME 500 |
11 | # define MULTICLICK_TIME 500 |
22 | #endif |
12 | #endif |
23 | #ifndef SCROLLBAR_INITIAL_DELAY |
13 | #ifndef SCROLLBAR_INITIAL_DELAY |
24 | # ifdef NEXT_SCROLLER |
|
|
25 | # define SCROLLBAR_INITIAL_DELAY 20 |
14 | # define SCROLLBAR_INITIAL_DELAY 0.33 |
26 | # else |
|
|
27 | # define SCROLLBAR_INITIAL_DELAY 40 |
|
|
28 | # endif |
|
|
29 | #endif |
15 | #endif |
30 | #ifndef SCROLLBAR_CONTINUOUS_DELAY |
16 | #ifndef SCROLLBAR_CONTINUOUS_DELAY |
31 | # define SCROLLBAR_CONTINUOUS_DELAY 2 |
17 | # define SCROLLBAR_CONTINUOUS_DELAY 0.05 |
32 | #endif |
|
|
33 | |
|
|
34 | /* |
|
|
35 | * key-strings: if only these keys were standardized <sigh> |
|
|
36 | */ |
|
|
37 | #ifdef LINUX_KEYS |
|
|
38 | # define KS_HOME "\033[1~" /* Home == Find */ |
|
|
39 | # define KS_END "\033[4~" /* End == Select */ |
|
|
40 | #else |
|
|
41 | # define KS_HOME "\033[7~" /* Home */ |
|
|
42 | # define KS_END "\033[8~" /* End */ |
|
|
43 | #endif |
18 | #endif |
44 | |
19 | |
45 | #ifdef SCROLL_ON_SHIFT |
20 | #ifdef SCROLL_ON_SHIFT |
46 | # define SCROLL_SHIFTKEY (shft) |
21 | # define SCROLL_SHIFTKEY (shft) |
|
|
22 | # define NOSCROLL_SHIFTKEY 0 |
47 | #else |
23 | #else |
48 | # define SCROLL_SHIFTKEY 0 |
24 | # define SCROLL_SHIFTKEY 0 |
|
|
25 | # define NOSCROLL_SHIFTKEY (shft) |
49 | #endif |
26 | #endif |
50 | #ifdef SCROLL_ON_CTRL |
27 | #ifdef SCROLL_ON_CTRL |
51 | # define SCROLL_CTRLKEY (ctrl) |
28 | # define SCROLL_CTRLKEY (ctrl) |
|
|
29 | # define NOSCROLL_CTRLKEY 0 |
52 | #else |
30 | #else |
53 | # define SCROLL_CTRLKEY 0 |
31 | # define SCROLL_CTRLKEY 0 |
|
|
32 | # define NOSCROLL_CTRLKEY (ctrl) |
54 | #endif |
33 | #endif |
55 | #ifdef SCROLL_ON_META |
34 | #ifdef SCROLL_ON_META |
56 | # define SCROLL_METAKEY (meta) |
35 | # define SCROLL_METAKEY (meta) |
|
|
36 | # define NOSCROLL_METAKEY 0 |
57 | #else |
37 | #else |
58 | # define SCROLL_METAKEY 0 |
38 | # define SCROLL_METAKEY 0 |
|
|
39 | # define NOSCROLL_METAKEY (meta) |
59 | #endif |
40 | #endif |
60 | #define IS_SCROLL_MOD (SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) |
41 | #define IS_SCROLL_MOD ((SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) \ |
|
|
42 | && (!NOSCROLL_SHIFTKEY && !NOSCROLL_CTRLKEY && !NOSCROLL_METAKEY)) |
|
|
43 | |
61 | |
44 | |
62 | /* |
45 | /* |
63 | * ESC-Z processing: |
46 | * ESC-Z processing: |
64 | * |
47 | * |
65 | * By stealing a sequence to which other xterms respond, and sending the |
48 | * By stealing a sequence to which other xterms respond, and sending the |
… | |
… | |
73 | * I doubt anyone will even notice. We provide a #ifdef just in case they |
56 | * I doubt anyone will even notice. We provide a #ifdef just in case they |
74 | * don't care about auto-display setting. Just in case the ancient |
57 | * don't care about auto-display setting. Just in case the ancient |
75 | * software in question is broken enough to be case insensitive to the 'c' |
58 | * software in question is broken enough to be case insensitive to the 'c' |
76 | * character in the answerback string, we make the distinguishing |
59 | * character in the answerback string, we make the distinguishing |
77 | * characteristic be capitalization of that character. The length of the |
60 | * characteristic be capitalization of that character. The length of the |
78 | * two strings should be the same so that identical read(2) calls may be |
61 | * two strings should be the same so that identical read (2) calls may be |
79 | * used. |
62 | * used. |
80 | */ |
63 | */ |
81 | #define VT100_ANS "\033[?1;2c" /* vt100 answerback */ |
64 | #define VT100_ANS "\033[?1;2c" /* vt100 answerback */ |
82 | #ifndef ESCZ_ANSWER |
65 | #ifndef ESCZ_ANSWER |
83 | # define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */ |
66 | # define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */ |
84 | #endif |
67 | #endif |
85 | |
68 | |
86 | #include "command.intpro" /* PROTOS for internal routines */ |
|
|
87 | #endif /* _COMMAND_H_ */ |
69 | #endif /* _COMMAND_H_ */ |