ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.h
Revision: 1.8
Committed: Thu Apr 8 20:22:25 2004 UTC (20 years, 2 months ago) by pcg
Content type: text/plain
Branch: MAIN
CVS Tags: rel-2_8, rel-3_0
Changes since 1.7: +3 -1 lines
Log Message:
*** empty log message ***

File Contents

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