1 | /* |
1 | /* |
2 | * $Id: command.h,v 1.10 2004/07/26 18:01:19 root Exp $ |
2 | * $Id: command.h,v 1.14 2004/08/15 00:37:04 root Exp $ |
3 | */ |
3 | */ |
4 | |
4 | |
5 | #ifndef COMMAND_H_ |
5 | #ifndef COMMAND_H_ |
6 | #define COMMAND_H_ |
6 | #define COMMAND_H_ |
7 | |
7 | |
… | |
… | |
40 | # define KS_END "\033[8~" /* End */ |
40 | # define KS_END "\033[8~" /* End */ |
41 | #endif |
41 | #endif |
42 | |
42 | |
43 | #ifdef SCROLL_ON_SHIFT |
43 | #ifdef SCROLL_ON_SHIFT |
44 | # define SCROLL_SHIFTKEY (shft) |
44 | # define SCROLL_SHIFTKEY (shft) |
|
|
45 | # define NOSCROLL_SHIFTKEY 0 |
45 | #else |
46 | #else |
46 | # define SCROLL_SHIFTKEY 0 |
47 | # define SCROLL_SHIFTKEY 0 |
|
|
48 | # define NOSCROLL_SHIFTKEY (shft) |
47 | #endif |
49 | #endif |
48 | #ifdef SCROLL_ON_CTRL |
50 | #ifdef SCROLL_ON_CTRL |
49 | # define SCROLL_CTRLKEY (ctrl) |
51 | # define SCROLL_CTRLKEY (ctrl) |
|
|
52 | # define NOSCROLL_CTRLKEY 0 |
50 | #else |
53 | #else |
51 | # define SCROLL_CTRLKEY 0 |
54 | # define SCROLL_CTRLKEY 0 |
|
|
55 | # define NOSCROLL_CTRLKEY (ctrl) |
52 | #endif |
56 | #endif |
53 | #ifdef SCROLL_ON_META |
57 | #ifdef SCROLL_ON_META |
54 | # define SCROLL_METAKEY (meta) |
58 | # define SCROLL_METAKEY (meta) |
|
|
59 | # define NOSCROLL_METAKEY 0 |
55 | #else |
60 | #else |
56 | # define SCROLL_METAKEY 0 |
61 | # define SCROLL_METAKEY 0 |
|
|
62 | # define NOSCROLL_METAKEY (meta) |
57 | #endif |
63 | #endif |
58 | #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 | |
59 | |
67 | |
60 | /* |
68 | /* |
61 | * ESC-Z processing: |
69 | * ESC-Z processing: |
62 | * |
70 | * |
63 | * 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 |
… | |
… | |
79 | #define VT100_ANS "\033[?1;2c" /* vt100 answerback */ |
87 | #define VT100_ANS "\033[?1;2c" /* vt100 answerback */ |
80 | #ifndef ESCZ_ANSWER |
88 | #ifndef ESCZ_ANSWER |
81 | # define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */ |
89 | # define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */ |
82 | #endif |
90 | #endif |
83 | |
91 | |
84 | #include "command.intpro" /* PROTOS for internal routines */ |
|
|
85 | #endif /* _COMMAND_H_ */ |
92 | #endif /* _COMMAND_H_ */ |