ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.h
Revision: 1.10
Committed: Mon Jul 26 18:01:19 2004 UTC (19 years, 10 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-3_4, rel-3_3, rel-3_2
Changes since 1.8: +4 -8 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 pcg 1.1 /*
2 root 1.10 * $Id: command.h,v 1.9 2004/07/10 20:59:39 root Exp $
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     #ifdef OFFIX_DND
14     # define DndFile 2
15     # define DndDir 5
16     # define DndLink 7
17     #endif
18    
19     /* a large REFRESH_PERIOD causes problems with `cat' */
20 pcg 1.4 #define REFRESH_PERIOD 2
21 pcg 1.1
22     #ifndef MULTICLICK_TIME
23     # define MULTICLICK_TIME 500
24     #endif
25     #ifndef SCROLLBAR_INITIAL_DELAY
26 root 1.10 # define SCROLLBAR_INITIAL_DELAY 0.33
27 pcg 1.1 #endif
28     #ifndef SCROLLBAR_CONTINUOUS_DELAY
29 root 1.10 # define SCROLLBAR_CONTINUOUS_DELAY 0.05
30 pcg 1.1 #endif
31    
32     /*
33     * key-strings: if only these keys were standardized <sigh>
34     */
35     #ifdef LINUX_KEYS
36     # define KS_HOME "\033[1~" /* Home == Find */
37     # define KS_END "\033[4~" /* End == Select */
38     #else
39     # define KS_HOME "\033[7~" /* Home */
40     # define KS_END "\033[8~" /* End */
41     #endif
42    
43     #ifdef SCROLL_ON_SHIFT
44     # define SCROLL_SHIFTKEY (shft)
45     #else
46     # define SCROLL_SHIFTKEY 0
47     #endif
48     #ifdef SCROLL_ON_CTRL
49     # define SCROLL_CTRLKEY (ctrl)
50     #else
51     # define SCROLL_CTRLKEY 0
52     #endif
53     #ifdef SCROLL_ON_META
54     # define SCROLL_METAKEY (meta)
55     #else
56     # define SCROLL_METAKEY 0
57     #endif
58     #define IS_SCROLL_MOD (SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY)
59    
60     /*
61     * ESC-Z processing:
62     *
63     * By stealing a sequence to which other xterms respond, and sending the
64     * same number of characters, but having a distinguishable sequence,
65     * we can avoid having a timeout (when not under an rxvt) for every login
66     * shell to auto-set its DISPLAY.
67     *
68     * This particular sequence is even explicitly stated as obsolete since
69     * about 1985, so only very old software is likely to be confused, a
70     * confusion which can likely be remedied through termcap or TERM. Frankly,
71     * I doubt anyone will even notice. We provide a #ifdef just in case they
72     * don't care about auto-display setting. Just in case the ancient
73     * software in question is broken enough to be case insensitive to the 'c'
74     * character in the answerback string, we make the distinguishing
75     * characteristic be capitalization of that character. The length of the
76 pcg 1.6 * two strings should be the same so that identical read (2) calls may be
77 pcg 1.1 * used.
78     */
79     #define VT100_ANS "\033[?1;2c" /* vt100 answerback */
80     #ifndef ESCZ_ANSWER
81     # define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */
82     #endif
83    
84     #include "command.intpro" /* PROTOS for internal routines */
85     #endif /* _COMMAND_H_ */