ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.h
(Generate patch)

Comparing rxvt-unicode/src/command.h (file contents):
Revision 1.6 by pcg, Fri Feb 13 12:16:21 2004 UTC vs.
Revision 1.16 by root, Sun Jan 1 05:08:41 2006 UTC

1/* 1/*
2 * $Id: command.h,v 1.6 2004/02/13 12:16:21 pcg Exp $ 2 * command.h
3 */ 3 */
4 4
5#ifndef COMMAND_H_ 5#ifndef COMMAND_H_
6#define COMMAND_H_ 6#define COMMAND_H_
7 7
8// STRING_MAX __MUST__ not be larger than what CBUFSIZ can hold.
8#define STRING_MAX 512 /* max string size for process_rxvt_xterm_seq() */ 9#define STRING_MAX 2048 /* max string size for process_rxvt_xterm_seq() */
10
9#define ESC_ARGS 32 /* max # of args for esc sequences */ 11#define ESC_ARGS 32 /* max # of args for esc sequences */
10 12
11#ifdef OFFIX_DND 13#ifdef OFFIX_DND
12# define DndFile 2 14# define DndFile 2
13# define DndDir 5 15# define DndDir 5
14# define DndLink 7 16# define DndLink 7
15#endif 17#endif
16 18
17/* a large REFRESH_PERIOD causes problems with `cat' */ 19/* a large REFRESH_PERIOD causes problems with `cat' */
18#define REFRESH_PERIOD 2 20#define REFRESH_PERIOD 1
19 21
20#ifndef MULTICLICK_TIME 22#ifndef MULTICLICK_TIME
21# define MULTICLICK_TIME 500 23# define MULTICLICK_TIME 500
22#endif 24#endif
23#ifndef SCROLLBAR_INITIAL_DELAY 25#ifndef SCROLLBAR_INITIAL_DELAY
24# ifdef NEXT_SCROLLER
25# define SCROLLBAR_INITIAL_DELAY 20 26# define SCROLLBAR_INITIAL_DELAY 0.33
26# else
27# define SCROLLBAR_INITIAL_DELAY 40
28# endif
29#endif 27#endif
30#ifndef SCROLLBAR_CONTINUOUS_DELAY 28#ifndef SCROLLBAR_CONTINUOUS_DELAY
31# define SCROLLBAR_CONTINUOUS_DELAY 2 29# define SCROLLBAR_CONTINUOUS_DELAY 0.05
32#endif 30#endif
33 31
34/* 32/*
35 * key-strings: if only these keys were standardized <sigh> 33 * key-strings: if only these keys were standardized <sigh>
36 */ 34 */
42# define KS_END "\033[8~" /* End */ 40# define KS_END "\033[8~" /* End */
43#endif 41#endif
44 42
45#ifdef SCROLL_ON_SHIFT 43#ifdef SCROLL_ON_SHIFT
46# define SCROLL_SHIFTKEY (shft) 44# define SCROLL_SHIFTKEY (shft)
45# define NOSCROLL_SHIFTKEY 0
47#else 46#else
48# define SCROLL_SHIFTKEY 0 47# define SCROLL_SHIFTKEY 0
48# define NOSCROLL_SHIFTKEY (shft)
49#endif 49#endif
50#ifdef SCROLL_ON_CTRL 50#ifdef SCROLL_ON_CTRL
51# define SCROLL_CTRLKEY (ctrl) 51# define SCROLL_CTRLKEY (ctrl)
52# define NOSCROLL_CTRLKEY 0
52#else 53#else
53# define SCROLL_CTRLKEY 0 54# define SCROLL_CTRLKEY 0
55# define NOSCROLL_CTRLKEY (ctrl)
54#endif 56#endif
55#ifdef SCROLL_ON_META 57#ifdef SCROLL_ON_META
56# define SCROLL_METAKEY (meta) 58# define SCROLL_METAKEY (meta)
59# define NOSCROLL_METAKEY 0
57#else 60#else
58# define SCROLL_METAKEY 0 61# define SCROLL_METAKEY 0
62# define NOSCROLL_METAKEY (meta)
59#endif 63#endif
60#define IS_SCROLL_MOD (SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) 64#define IS_SCROLL_MOD ((SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) \
65 && (!NOSCROLL_SHIFTKEY && !NOSCROLL_CTRLKEY && !NOSCROLL_METAKEY))
66
61 67
62/* 68/*
63 * ESC-Z processing: 69 * ESC-Z processing:
64 * 70 *
65 * By stealing a sequence to which other xterms respond, and sending the 71 * By stealing a sequence to which other xterms respond, and sending the
81#define VT100_ANS "\033[?1;2c" /* vt100 answerback */ 87#define VT100_ANS "\033[?1;2c" /* vt100 answerback */
82#ifndef ESCZ_ANSWER 88#ifndef ESCZ_ANSWER
83# define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */ 89# define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */
84#endif 90#endif
85 91
86#include "command.intpro" /* PROTOS for internal routines */
87#endif /* _COMMAND_H_ */ 92#endif /* _COMMAND_H_ */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines