ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.h
Revision: 1.23
Committed: Sat Aug 16 10:51:23 2014 UTC (9 years, 8 months ago) by sf-exg
Content type: text/plain
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_29, rxvt-unicode-rel-9_26, rxvt-unicode-rel-9_25, rxvt-unicode-rel-9_22, rxvt-unicode-rel-9_21, rxvt-unicode-rel-9_30, HEAD
Changes since 1.22: +0 -3 lines
Log Message:
Add -mc option and multiClickTime resource, patch by Joe Peterson.

File Contents

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