ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.h
Revision: 1.20
Committed: Sat Feb 16 15:48:37 2008 UTC (16 years, 3 months ago) by ayin
Content type: text/plain
Branch: MAIN
CVS Tags: before_dynamic_fontidx, rel-9_11, rel-9_10, dynamic_fontidx, rel-9_09, rel-9_06, rel-9_07, rel-9_05
Changes since 1.19: +0 -11 lines
Log Message:
Nuke LINUX_KEYS.

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 pcg 1.8 // STRING_MAX __MUST__ not be larger than what CBUFSIZ can hold.
9 root 1.10 #define STRING_MAX 2048 /* max string size for process_rxvt_xterm_seq() */
10 pcg 1.8
11 pcg 1.1 #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 root 1.10 # define SCROLLBAR_INITIAL_DELAY 0.33
18 pcg 1.1 #endif
19     #ifndef SCROLLBAR_CONTINUOUS_DELAY
20 root 1.10 # define SCROLLBAR_CONTINUOUS_DELAY 0.05
21 pcg 1.1 #endif
22    
23     #ifdef SCROLL_ON_SHIFT
24     # define SCROLL_SHIFTKEY (shft)
25 root 1.13 # define NOSCROLL_SHIFTKEY 0
26 pcg 1.1 #else
27     # define SCROLL_SHIFTKEY 0
28 root 1.13 # define NOSCROLL_SHIFTKEY (shft)
29 pcg 1.1 #endif
30     #ifdef SCROLL_ON_CTRL
31     # define SCROLL_CTRLKEY (ctrl)
32 root 1.13 # define NOSCROLL_CTRLKEY 0
33 pcg 1.1 #else
34     # define SCROLL_CTRLKEY 0
35 root 1.13 # define NOSCROLL_CTRLKEY (ctrl)
36 pcg 1.1 #endif
37     #ifdef SCROLL_ON_META
38     # define SCROLL_METAKEY (meta)
39 root 1.13 # define NOSCROLL_METAKEY 0
40 pcg 1.1 #else
41     # define SCROLL_METAKEY 0
42 root 1.13 # define NOSCROLL_METAKEY (meta)
43 pcg 1.1 #endif
44 root 1.13 #define IS_SCROLL_MOD ((SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) \
45     && (!NOSCROLL_SHIFTKEY && !NOSCROLL_CTRLKEY && !NOSCROLL_METAKEY))
46    
47 pcg 1.1
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 pcg 1.6 * two strings should be the same so that identical read (2) calls may be
65 pcg 1.1 * 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 ayin 1.19 #endif /* _COMMAND_H_ */