ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.h
Revision: 1.17
Committed: Fri Jan 20 11:02:46 2006 UTC (18 years, 4 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-7_3a, rel-7_3, rel-7_2, rel-7_7, rel-7_6, rel-7_5, rel-7_4, rel-7_9, rel-7_8, rel-8_0, rel-8_1, rel-8_2
Changes since 1.16: +0 -6 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 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     /* a large REFRESH_PERIOD causes problems with `cat' */
14 root 1.16 #define REFRESH_PERIOD 1
15 pcg 1.1
16     #ifndef MULTICLICK_TIME
17     # define MULTICLICK_TIME 500
18     #endif
19     #ifndef SCROLLBAR_INITIAL_DELAY
20 root 1.10 # define SCROLLBAR_INITIAL_DELAY 0.33
21 pcg 1.1 #endif
22     #ifndef SCROLLBAR_CONTINUOUS_DELAY
23 root 1.10 # define SCROLLBAR_CONTINUOUS_DELAY 0.05
24 pcg 1.1 #endif
25    
26     /*
27     * key-strings: if only these keys were standardized <sigh>
28     */
29     #ifdef LINUX_KEYS
30     # define KS_HOME "\033[1~" /* Home == Find */
31     # define KS_END "\033[4~" /* End == Select */
32     #else
33     # define KS_HOME "\033[7~" /* Home */
34     # define KS_END "\033[8~" /* End */
35     #endif
36    
37     #ifdef SCROLL_ON_SHIFT
38     # define SCROLL_SHIFTKEY (shft)
39 root 1.13 # define NOSCROLL_SHIFTKEY 0
40 pcg 1.1 #else
41     # define SCROLL_SHIFTKEY 0
42 root 1.13 # define NOSCROLL_SHIFTKEY (shft)
43 pcg 1.1 #endif
44     #ifdef SCROLL_ON_CTRL
45     # define SCROLL_CTRLKEY (ctrl)
46 root 1.13 # define NOSCROLL_CTRLKEY 0
47 pcg 1.1 #else
48     # define SCROLL_CTRLKEY 0
49 root 1.13 # define NOSCROLL_CTRLKEY (ctrl)
50 pcg 1.1 #endif
51     #ifdef SCROLL_ON_META
52     # define SCROLL_METAKEY (meta)
53 root 1.13 # define NOSCROLL_METAKEY 0
54 pcg 1.1 #else
55     # define SCROLL_METAKEY 0
56 root 1.13 # define NOSCROLL_METAKEY (meta)
57 pcg 1.1 #endif
58 root 1.13 #define IS_SCROLL_MOD ((SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) \
59     && (!NOSCROLL_SHIFTKEY && !NOSCROLL_CTRLKEY && !NOSCROLL_METAKEY))
60    
61 pcg 1.1
62     /*
63     * ESC-Z processing:
64     *
65     * By stealing a sequence to which other xterms respond, and sending the
66     * same number of characters, but having a distinguishable sequence,
67     * we can avoid having a timeout (when not under an rxvt) for every login
68     * shell to auto-set its DISPLAY.
69     *
70     * This particular sequence is even explicitly stated as obsolete since
71     * about 1985, so only very old software is likely to be confused, a
72     * confusion which can likely be remedied through termcap or TERM. Frankly,
73     * I doubt anyone will even notice. We provide a #ifdef just in case they
74     * don't care about auto-display setting. Just in case the ancient
75     * software in question is broken enough to be case insensitive to the 'c'
76     * character in the answerback string, we make the distinguishing
77     * characteristic be capitalization of that character. The length of the
78 pcg 1.6 * two strings should be the same so that identical read (2) calls may be
79 pcg 1.1 * used.
80     */
81     #define VT100_ANS "\033[?1;2c" /* vt100 answerback */
82     #ifndef ESCZ_ANSWER
83     # define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */
84     #endif
85    
86     #endif /* _COMMAND_H_ */