Use rxvt_temp_buf in more places.
[dana/urxvt.git] / src / command.h
1 /*
2  * command.h
3  */
4
5 #ifndef COMMAND_H_
6 #define COMMAND_H_
7
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() */
10
11 #define ESC_ARGS        32      /* max # of args for esc sequences */
12
13 #ifndef MULTICLICK_TIME
14 # define MULTICLICK_TIME        500
15 #endif
16 #ifndef SCROLLBAR_INITIAL_DELAY
17 # define SCROLLBAR_INITIAL_DELAY        0.33
18 #endif
19 #ifndef SCROLLBAR_CONTINUOUS_DELAY
20 # define SCROLLBAR_CONTINUOUS_DELAY     0.05
21 #endif
22
23 #ifdef SCROLL_ON_SHIFT
24 # define SCROLL_SHIFTKEY (shft)
25 # define NOSCROLL_SHIFTKEY 0
26 #else
27 # define SCROLL_SHIFTKEY 0
28 # define NOSCROLL_SHIFTKEY (shft)
29 #endif
30 #ifdef SCROLL_ON_CTRL
31 # define SCROLL_CTRLKEY  (ctrl)
32 # define NOSCROLL_CTRLKEY 0
33 #else
34 # define SCROLL_CTRLKEY 0
35 # define NOSCROLL_CTRLKEY (ctrl)
36 #endif
37 #ifdef SCROLL_ON_META
38 # define SCROLL_METAKEY  (meta)
39 # define NOSCROLL_METAKEY 0
40 #else
41 # define SCROLL_METAKEY 0
42 # define NOSCROLL_METAKEY (meta)
43 #endif
44 #define IS_SCROLL_MOD  ((SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) \
45               && (!NOSCROLL_SHIFTKEY && !NOSCROLL_CTRLKEY && !NOSCROLL_METAKEY))
46
47
48 /*
49  * ESC-Z processing:
50  *
51  * By stealing a sequence to which other xterms respond, and sending the
52  * same number of characters, but having a distinguishable sequence,
53  * we can avoid having a timeout (when not under an rxvt) for every login
54  * shell to auto-set its DISPLAY.
55  *
56  * This particular sequence is even explicitly stated as obsolete since
57  * about 1985, so only very old software is likely to be confused, a
58  * confusion which can likely be remedied through termcap or TERM. Frankly,
59  * I doubt anyone will even notice.  We provide a #ifdef just in case they
60  * don't care about auto-display setting.  Just in case the ancient
61  * software in question is broken enough to be case insensitive to the 'c'
62  * character in the answerback string, we make the distinguishing
63  * characteristic be capitalization of that character. The length of the
64  * two strings should be the same so that identical read (2) calls may be
65  * used.
66  */
67 #define VT100_ANS       "\033[?1;2c"    /* vt100 answerback */
68 #ifndef ESCZ_ANSWER
69 # define ESCZ_ANSWER    VT100_ANS       /* obsolete ANSI ESC[c */
70 #endif
71
72 #endif /* _COMMAND_H_ */