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() */
11 #define ESC_ARGS 32 /* max # of args for esc sequences */
13 #ifndef MULTICLICK_TIME
14 # define MULTICLICK_TIME 500
16 #ifndef SCROLLBAR_INITIAL_DELAY
17 # define SCROLLBAR_INITIAL_DELAY 0.33
19 #ifndef SCROLLBAR_CONTINUOUS_DELAY
20 # define SCROLLBAR_CONTINUOUS_DELAY 0.05
23 #ifdef SCROLL_ON_SHIFT
24 # define SCROLL_SHIFTKEY (shft)
25 # define NOSCROLL_SHIFTKEY 0
27 # define SCROLL_SHIFTKEY 0
28 # define NOSCROLL_SHIFTKEY (shft)
31 # define SCROLL_CTRLKEY (ctrl)
32 # define NOSCROLL_CTRLKEY 0
34 # define SCROLL_CTRLKEY 0
35 # define NOSCROLL_CTRLKEY (ctrl)
38 # define SCROLL_METAKEY (meta)
39 # define NOSCROLL_METAKEY 0
41 # define SCROLL_METAKEY 0
42 # define NOSCROLL_METAKEY (meta)
44 #define IS_SCROLL_MOD ((SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) \
45 && (!NOSCROLL_SHIFTKEY && !NOSCROLL_CTRLKEY && !NOSCROLL_METAKEY))
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.
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
67 #define VT100_ANS "\033[?1;2c" /* vt100 answerback */
69 # define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */
72 #endif /* _COMMAND_H_ */