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, 9 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

# User Rev Content
1 pcg 1.1 /*
2 root 1.15 * command.h
3 pcg 1.1 */
4    
5 pcg 1.5 #ifndef COMMAND_H_
6     #define COMMAND_H_
7 pcg 1.1
8     #define ESC_ARGS 32 /* max # of args for esc sequences */
9    
10     #ifndef SCROLLBAR_INITIAL_DELAY
11 root 1.10 # define SCROLLBAR_INITIAL_DELAY 0.33
12 pcg 1.1 #endif
13     #ifndef SCROLLBAR_CONTINUOUS_DELAY
14 root 1.10 # define SCROLLBAR_CONTINUOUS_DELAY 0.05
15 pcg 1.1 #endif
16    
17     #ifdef SCROLL_ON_SHIFT
18     # define SCROLL_SHIFTKEY (shft)
19 root 1.13 # define NOSCROLL_SHIFTKEY 0
20 pcg 1.1 #else
21     # define SCROLL_SHIFTKEY 0
22 root 1.13 # define NOSCROLL_SHIFTKEY (shft)
23 pcg 1.1 #endif
24     #ifdef SCROLL_ON_CTRL
25     # define SCROLL_CTRLKEY (ctrl)
26 root 1.13 # define NOSCROLL_CTRLKEY 0
27 pcg 1.1 #else
28     # define SCROLL_CTRLKEY 0
29 root 1.13 # define NOSCROLL_CTRLKEY (ctrl)
30 pcg 1.1 #endif
31     #ifdef SCROLL_ON_META
32     # define SCROLL_METAKEY (meta)
33 root 1.13 # define NOSCROLL_METAKEY 0
34 pcg 1.1 #else
35     # define SCROLL_METAKEY 0
36 root 1.13 # define NOSCROLL_METAKEY (meta)
37 pcg 1.1 #endif
38 root 1.13 #define IS_SCROLL_MOD ((SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) \
39     && (!NOSCROLL_SHIFTKEY && !NOSCROLL_CTRLKEY && !NOSCROLL_METAKEY))
40    
41 pcg 1.1
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 pcg 1.6 * two strings should be the same so that identical read (2) calls may be
59 pcg 1.1 * 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 ayin 1.19 #endif /* _COMMAND_H_ */