ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.h
Revision: 1.22
Committed: Thu Feb 20 18:59:13 2014 UTC (10 years, 3 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_20
Changes since 1.21: +0 -3 lines
Log Message:
*** empty log message ***

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