1 | /* |
1 | /* |
2 | * $Id: command.h,v 1.3 2003/12/05 04:05:13 pcg Exp $ |
2 | * $Id: command.h,v 1.10 2004/07/26 18:01:19 root Exp $ |
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 | #define STRING_MAX 512 /* max string size for process_rxvt_xterm_seq() */ |
9 | #define STRING_MAX 2048 /* max string size for process_rxvt_xterm_seq() */ |
|
|
10 | |
9 | #define ESC_ARGS 32 /* max # of args for esc sequences */ |
11 | #define ESC_ARGS 32 /* max # of args for esc sequences */ |
10 | |
12 | |
11 | #ifdef OFFIX_DND |
13 | #ifdef OFFIX_DND |
12 | # define DndFile 2 |
14 | # define DndFile 2 |
13 | # define DndDir 5 |
15 | # define DndDir 5 |
14 | # define DndLink 7 |
16 | # define DndLink 7 |
15 | #endif |
17 | #endif |
16 | |
18 | |
17 | /* a large REFRESH_PERIOD causes problems with `cat' */ |
19 | /* a large REFRESH_PERIOD causes problems with `cat' */ |
18 | #define REFRESH_PERIOD 1 |
20 | #define REFRESH_PERIOD 2 |
19 | |
21 | |
20 | #ifndef MULTICLICK_TIME |
22 | #ifndef MULTICLICK_TIME |
21 | # define MULTICLICK_TIME 500 |
23 | # define MULTICLICK_TIME 500 |
22 | #endif |
24 | #endif |
23 | #ifndef SCROLLBAR_INITIAL_DELAY |
25 | #ifndef SCROLLBAR_INITIAL_DELAY |
24 | # ifdef NEXT_SCROLLER |
|
|
25 | # define SCROLLBAR_INITIAL_DELAY 20 |
26 | # define SCROLLBAR_INITIAL_DELAY 0.33 |
26 | # else |
|
|
27 | # define SCROLLBAR_INITIAL_DELAY 40 |
|
|
28 | # endif |
|
|
29 | #endif |
27 | #endif |
30 | #ifndef SCROLLBAR_CONTINUOUS_DELAY |
28 | #ifndef SCROLLBAR_CONTINUOUS_DELAY |
31 | # define SCROLLBAR_CONTINUOUS_DELAY 2 |
29 | # define SCROLLBAR_CONTINUOUS_DELAY 0.05 |
32 | #endif |
30 | #endif |
33 | |
31 | |
34 | /* |
32 | /* |
35 | * key-strings: if only these keys were standardized <sigh> |
33 | * key-strings: if only these keys were standardized <sigh> |
36 | */ |
34 | */ |
… | |
… | |
73 | * I doubt anyone will even notice. We provide a #ifdef just in case they |
71 | * 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 |
72 | * 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' |
73 | * software in question is broken enough to be case insensitive to the 'c' |
76 | * character in the answerback string, we make the distinguishing |
74 | * character in the answerback string, we make the distinguishing |
77 | * characteristic be capitalization of that character. The length of the |
75 | * 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 |
76 | * two strings should be the same so that identical read (2) calls may be |
79 | * used. |
77 | * used. |
80 | */ |
78 | */ |
81 | #define VT100_ANS "\033[?1;2c" /* vt100 answerback */ |
79 | #define VT100_ANS "\033[?1;2c" /* vt100 answerback */ |
82 | #ifndef ESCZ_ANSWER |
80 | #ifndef ESCZ_ANSWER |
83 | # define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */ |
81 | # define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */ |