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

Comparing rxvt-unicode/src/feature.h (file contents):
Revision 1.5 by pcg, Sat Jan 17 01:20:01 2004 UTC vs.
Revision 1.56 by ayin, Sat Jan 26 14:24:43 2008 UTC

22 *----------------------------------------------------------------------*/ 22 *----------------------------------------------------------------------*/
23#ifndef FEATURE_H 23#ifndef FEATURE_H
24#define FEATURE_H 24#define FEATURE_H
25 25
26#ifndef X11USRLIBDIR 26#ifndef X11USRLIBDIR
27# define X11USRLIBDIR "/usr/X11R6/lib" 27# define X11USRLIBDIR "/usr/lib"
28#endif 28#endif
29#ifndef X11LIBDIR 29#ifndef X11LIBDIR
30# define X11LIBDIR X11USRLIBDIR "/X11" 30# define X11LIBDIR X11USRLIBDIR "/X11"
31#endif 31#endif
32#ifndef XAPPLOADDIR 32#ifndef XAPPLOADDIR
33# define XAPPLOADDIR X11LIBDIR "/app-defaults" 33# define XAPPLOADDIR X11LIBDIR "/app-defaults"
34# define XAPPLOADDIRLOCALE X11LIBDIR "/%-.*s/app-defaults" 34# define XAPPLOADDIRLOCALE X11LIBDIR "/%s/app-defaults"
35#endif 35#endif
36
37/*-------------------------------SECURITY-------------------------------*/
38
39/*
40 * Default mode to restore when releasing the PTS device. It is relaxed to be
41 * compatible with most systems, change it to a more secure value if your
42 * system supports it (0640 for example).
43 */
44#define RESTORE_TTY_MODE 0666
45
46/*
47 * Define if you want to use a separate process for pty/tty handling
48 * when running setuid/setgid. You need this when making it setuid/setgid.
49 */
50#define PTYTTY_HELPER 1
36 51
37/*-----------------------SCREEN OPTIONS AND COLOURS---------------------*/ 52/*-----------------------SCREEN OPTIONS AND COLOURS---------------------*/
53
38/* 54/*
39 * Define the name of the environment variable to be used in 55 * NOTE:
40 * addition to the "PATH" environment and the `path' resource.
41 * Usually it should point to where you keep your background pixmaps and/or
42 * your menu files
43 */ 56 *
44#define PATH_ENV "RXVTPATH" 57 * Some of these configuration options have not been tested within the new
58 * rxvt-unicode framework. Changing them should work, might have no effect,
59 * destroy your disks or have any other effects. You may freely try (and
60 * report bugs, too!), but don't _expect_ them to work.
61 */
62
63/*
64 * The cursor blink interval, in seconds.
65 */
66#define CURSOR_BLINK_INTERVAL 0.5
67
68/*
69 * The text blink interval, in seconds.
70 */
71#define TEXT_BLINK_INTERVAL CURSOR_BLINK_INTERVAL
45 72
46/* 73/*
47 * Avoid enabling the colour cursor (-cr, cursorColor, cursorColor2) 74 * Avoid enabling the colour cursor (-cr, cursorColor, cursorColor2)
48 */ 75 */
49/* #define NO_CURSORCOLOR */ 76/* #define NO_CURSORCOLOR */
50 77
51/* 78/*
52 * Suppress use of BOLD and BLINK attributes for setting bright foreground
53 * and background, respectively. Simulate BOLD using colorBD or
54 * overstrike characters.
55 */
56/* #define NO_BRIGHTCOLOR */
57
58/*
59 * Make colours match xterm colours instead of `traditional' rxvt colours 79 * Make colours match xterm colours instead of `traditional' rxvt colours
60 */ 80 */
61#define XTERM_COLORS 81#define XTERM_COLORS
62 82
63/* 83/*
64 * Disable separate colours for bold, underline and reverse video 84 * Disable separate colours for bold, underline and reverse video
65 */ 85 */
66/* #define NO_BOLD_UNDERLINE_REVERSE */ 86/* #define NO_BOLD_UNDERLINE_REVERSE */
67 87
68/* 88/*
69 * Disable using simulated bold using overstrike. You can also turn off
70 * overstrike just for multi char fonts
71 * Note: NO_BOLDOVERSTRIKE implies NO_BOLDOVERSTRIKE_MULTI
72 */
73/* #define NO_BOLDOVERSTRIKE */
74/* #define NO_BOLDOVERSTRIKE_MULTI */
75
76/*
77 * Don't bother cleaning up pixel droppings. If you don't use bold
78 * overstrike then you don't usually need this
79 */
80#define NO_PIXEL_DROPPING_AVOIDANCE
81
82/*
83 * Add support for '-hc colour' for background highlight of selection
84 */
85#define OPTION_HC
86
87/*
88 * Define maximum possible columns and rows 89 * Define maximum possible columns and rows
89 */ 90 */
90#define MAX_COLS 4000 91#define MAX_COLS 10000
91#define MAX_ROWS 1000 92#define MAX_ROWS 10000
93
94/*
95 * Define maximum possible savelines
96 */
97#define MAX_SAVELINES 10000000
92 98
93/* 99/*
94 * Define default colours for certain items. If you have a low colour 100 * Define default colours for certain items. If you have a low colour
95 * display, then consider using colours which are already pre-allocated: 101 * display, then consider using colours which are already pre-allocated:
102 *
96 * Black (#000000) 103 * Black (#000000)
97 * Red3 (#CD0000) + these 104 * Red3 (#CD0000)
98 * Green3 (#00CD00) + colours 105 * Green3 (#00CD00)
99 * Yellow3 (#CDCD00) + are 106 * Yellow3 (#CDCD00)
100 * Blue3 (#0000CD) + not 107 * Blue3 (#0000CD)
101 * Magenta3 (#CD00CD) + pre-allocated 108 * Magenta3 (#CD00CD)
102 * Cyan3 (#00CDCD) + if 109 * Cyan3 (#00CDCD)
103 * AntiqueWhite (#FAEBD7) + NO_BRIGHTCOLOR 110 * AntiqueWhite (#FAEBD7)
104 * Grey25 (#404040) + defined 111 * Grey25 (#404040)
105 * Red (#FF0000) 112 * Red (#FF0000)
106 * Green (#00FF00) 113 * Green (#00FF00)
107 * Yellow (#FFFF00) 114 * Yellow (#FFFF00)
108 * Blue (#0000FF) 115 * Blue (#0000FF)
109 * Magenta (#FF00FF) 116 * Magenta (#FF00FF)
110 * Cyan (#00FFFF) 117 * Cyan (#00FFFF)
111 * White (#FFFFFF) 118 * White (#FFFFFF)
112 */ 119 */
113/* These colours MUST be defined */ 120/* These colours MUST be defined */
114#define COLOR_FOREGROUND "Black" 121#define COLOR_FOREGROUND "rgb:00/00/00"
115#define COLOR_BACKGROUND "White" 122#define COLOR_BACKGROUND "rgb:ff/ff/ff"
116#define COLOR_SCROLLBAR "#B2B2B2" /* scrollColor match Netscape */ 123#define COLOR_SCROLLBAR "rgb:b2/b2/b2" /* scrollColor match Netscape */
117#define COLOR_SCROLLTROUGH "#969696" 124#define COLOR_SCROLLTROUGH "rgb:96/96/96"
125
118/* 126/*
119 * The cursor colours are special. Be very careful about setting these: 127 * The cursor colours are special. Be very careful about setting these:
120 * foreground/background colours may be modified by command line or resources 128 * foreground/background colours may be modified by command line or resources
121 * prior to this allocation. Also, they are not valid if NO_CURSORCOLOR is 129 * prior to this allocation. Also, they are not valid if NO_CURSORCOLOR is
122 * defined 130 * defined
123 */ 131 */
124#define COLOR_CURSOR_FOREGROUND NULL /* if NULL, use background colour */ 132#define COLOR_CURSOR_FOREGROUND NULL /* if NULL, use background colour */
125#define COLOR_CURSOR_BACKGROUND NULL /* if NULL, use foreground colour */ 133#define COLOR_CURSOR_BACKGROUND NULL /* if NULL, use foreground colour */
126 134
127/* 135/*
128 * Define to remove support for XCopyArea() support. XCopyArea() is useful 136 * Define to remove support for XCopyArea () support. XCopyArea () is useful
129 * for scrolling on non-local X displays 137 * for scrolling on non-local X displays
130 */ 138 */
131/* #define NO_SLOW_LINK_SUPPORT */ 139#define NO_SLOW_LINK_SUPPORT
132 140
133/* 141/*
134 * Printer pipe which will be used for emulation of attached vt100 printer 142 * Printer pipe which will be used for emulation of attached vt100 printer
135 */ 143 */
136#define PRINTPIPE "lpr" 144#define PRINTPIPE "lpr"
137 145
138/* 146/*
139 * Allow 80/132 mode switching on startup 147 * Allow 80/132 mode switching on startup
140 */ 148 */
141/* #define ALLOW_132_MODE */ 149/* #define ALLOW_132_MODE */
142
143/*------------------------------RESOURCES-------------------------------*/
144/*
145 * Define to find installed application defaults for rxvt
146 * Only if USE_XGETDEFAULT is not defined.
147 */
148/* #define USE_XAPPLOADDIR */
149
150/*
151 * Add support for the Offix DND (Drag 'n' Drop) protocol
152 */
153/* #define OFFIX_DND */
154 150
155/*---------------------------------KEYS---------------------------------*/ 151/*---------------------------------KEYS---------------------------------*/
156 152
157/* 153/*
158 * Define defaults for backspace and delete keys - unless they have been 154 * Define defaults for backspace and delete keys - unless they have been
159 * configured out with --disable-backspace-key / --disable-delete-key 155 * configured out with --disable-backspace-key / --disable-delete-key
160 */ 156 */
161//#define DEFAULT_BACKSPACE "DEC" /* SPECIAL */ 157#define DEFAULT_BACKSPACE "DEC" /* SPECIAL */
162#define DEFAULT_BACKSPACE "\010" /* wrong, but match terminfo etc. */
163#define DEFAULT_DELETE "\033[3~" 158#define DEFAULT_DELETE "\033[3~"
164
165/*
166 * Choose one of these values to be the `hotkey' for changing font.
167 * This has been superceded and is only for you older users
168 */
169/* #define HOTKEY_CTRL */
170/* #define HOTKEY_META */
171 159
172/* 160/*
173 * To use 161 * To use
174 * Home = "\E[1~", End = "\E[4~" 162 * Home = "\E[1~", End = "\E[4~"
175 * instead of 163 * instead of
178/* #define LINUX_KEYS */ 166/* #define LINUX_KEYS */
179 167
180/* 168/*
181 * Enable the keysym resource which allows you to define strings associated 169 * Enable the keysym resource which allows you to define strings associated
182 * with various KeySyms (0xFF00 - 0xFFFF). 170 * with various KeySyms (0xFF00 - 0xFFFF).
183 * Only works with the default hand-rolled resources. 171 * Required by perl.
184 */ 172 */
185#ifndef NO_RESOURCES 173#if ENABLE_FRILLS || ENABLE_PERL
186# define KEYSYM_RESOURCE 174# define KEYSYM_RESOURCE
187#endif 175#endif
188 176
189/* 177/*
190 * Modifier/s to use to allow up/down arrows and Priot/Next keys 178 * Modifier/s to use to allow up/down arrows and Prior/Next keys
191 * to scroll single or page-fulls 179 * to scroll single or page-fulls
192 */ 180 */
193#define SCROLL_ON_SHIFT 181#define SCROLL_ON_SHIFT
194/* #define SCROLL_ON_CTRL */ 182/* #define SCROLL_ON_CTRL */
195/* #define SCROLL_ON_META */ 183/* #define SCROLL_ON_META */
196 184
197/* 185/*
198 * Allow scrolling with modifier+Up/Down keys, in addition 186 * Allow scrolling with modifier+Up/Down keys, in addition
199 * to modifier+Prior/Next? (modifier is controlled with 187 * to modifier+Prior/Next? (modifier is controlled with
200 * SCROLL_ON_* defines above.). 188 * SCROLL_ON_* defines above.).
201 * Also for modifier+Home/End keys to move to top/bottom 189 * Also for modifier+Home/End keys to move to top/bottom
202 */ 190 */
203/* #define SCROLL_ON_UPDOWN_KEYS */ 191/* #define SCROLL_ON_UPDOWN_KEYS */
204/* #define SCROLL_ON_HOMEEND_KEYS */ 192/* #define SCROLL_ON_HOMEEND_KEYS */
205 193
220 * Useful when window manager grabs Alt+Tab -- mg 208 * Useful when window manager grabs Alt+Tab -- mg
221 */ 209 */
222/* #define CTRL_TAB_MAKES_META */ 210/* #define CTRL_TAB_MAKES_META */
223/* #define MOD4_TAB_MAKES_META */ 211/* #define MOD4_TAB_MAKES_META */
224 212
225/*
226 * default mode switch when greek keyboard is enabled (i.e. GREEK_SUPPORT)
227 */
228#ifndef GREEK_KEYBOARD_MODESWITCH
229# define GREEK_KEYBOARD_MODESWITCH XK_Mode_switch
230#endif
231
232/*--------------------------------MOUSE---------------------------------*/ 213/*--------------------------------MOUSE---------------------------------*/
233/* 214/*
234 * Disable sending escape sequences (up, down, page up/down) 215 * Disable sending escape sequences (up, down, page up/down)
235 * from the scrollbar when XTerm mouse reporting is enabled 216 * from the scrollbar when XTerm mouse reporting is enabled
236 */ 217 */
238 219
239/* 220/*
240 * Default separating chars for multiple-click selection 221 * Default separating chars for multiple-click selection
241 * Space and tab are separate separating characters and are not settable 222 * Space and tab are separate separating characters and are not settable
242 */ 223 */
243#define CUTCHARS "\"&'()*,;<=>?@[\\]^`{|}~" 224#define CUTCHARS "\"&'()*,;<=>?@[\\]^`{|}"
244 225
245/* 226/*
246 * Add run-time support for changing the cutchars for double click selection 227 * Add run-time support for changing the cutchars for double click selection
247 */ 228 */
248#define CUTCHAR_RESOURCE 229#define CUTCHAR_RESOURCE
249 230
250/* 231/*
251 * Have mouse reporting include double-click info for button1 232 * Have mouse reporting include double-click info for button1
252 */ 233 */
253/* #define MOUSE_REPORT_DOUBLECLICK */ 234//#define MOUSE_REPORT_DOUBLECLICK
254 235
255/* 236/*
256 * Set delay between multiple click events [default: 500 milliseconds] 237 * Set delay between multiple click events [default: 500 milliseconds]
257 */ 238 */
258/* #define MULTICLICK_TIME 500 */ 239/* #define MULTICLICK_TIME 500 */
262 * this long after the last mouse click [default: 50 milliseconds] 243 * this long after the last mouse click [default: 50 milliseconds]
263 */ 244 */
264#define MOUSE_THRESHOLD 50 245#define MOUSE_THRESHOLD 50
265 246
266/* 247/*
267 * If mouse wheel is defined, then scrolling is by 5 lines (or 1 line
268 * if the shift key is down). Scrolling can be smooth or jump scrolling
269 */
270/* #define JUMP_MOUSE_WHEEL */
271
272/*
273 * Set delay periods for continuous scrolling with scrollbar buttons 248 * Set delay periods for continuous scrolling with scrollbar buttons
274 */ 249 */
275/* #define SCROLLBAR_INITIAL_DELAY 40 */ 250/* #define SCROLLBAR_INITIAL_DELAY 0.33 */
276/* #define SCROLLBAR_CONTINUOUS_DELAY 2 */ 251/* #define SCROLLBAR_CONTINUOUS_DELAY 0.05 */
277 252
278/* 253/*
279 * The speed of selection scrolling is proportional to the distance 254 * The speed of selection scrolling is proportional to the distance
280 * the mouse pointer is out of the text window. This is the max 255 * the mouse pointer is out of the text window. This is the max
281 * number of lines to scroll at a time. 256 * number of lines to scroll at a time.
282 */ 257 */
283#define SELECTION_SCROLL_MAX_LINES 2 258#define SELECTION_SCROLL_MAX_LINES 8
284 259
285/* 260/*
286 * The number of lines (measured in character's heights, not pixels) 261 * The number of lines (measured in character's heights, not pixels)
287 * the pointer must be out of the window for each increase in the 262 * the pointer must be out of the window for each increase in the
288 * number of lines scrolled. 263 * number of lines scrolled.
289 */ 264 */
290#define SELECTION_SCROLL_LINE_SPEEDUP 4 265#define SELECTION_SCROLL_LINE_SPEEDUP 3
291 266
292/*--------------------------------MISC----------------------------------*/ 267/*--------------------------------MISC----------------------------------*/
293/* 268/*
294 * Disable to reset tty device to pre-incovation state
295 */
296#define RESET_TTY_TO_COMMON_DEFAULTS
297
298/*
299 * Only log in wtmp file when we're a login shell (-ls option) 269 * Only log in wtmp and lastlog files when we're a login shell (-ls option)
300 */ 270 */
301#define WTMP_ONLY_ON_LOGIN 271#define LOG_ONLY_ON_LOGIN
302
303/*
304 * When pasting ACS characters, convert to similar normal characters
305 */
306/* #define ACS_ASCII */
307
308/*
309 * Default ascii characters to which ACS symbols are converted
310 */
311#ifdef ACS_ASCII
312# define ACS_CHARS ".# o+ ----+---__++--|<> =#. "
313#endif
314 272
315/*--------------------------------BELL----------------------------------*/ 273/*--------------------------------BELL----------------------------------*/
316/* 274/*
317 * Disable all bell indications 275 * Disable all bell indications
318 */ 276 */
338/* 296/*
339 * Minimum and maximum widths of the scrollbar (all styles) 297 * Minimum and maximum widths of the scrollbar (all styles)
340 */ 298 */
341#define SB_WIDTH_MINIMUM 5 299#define SB_WIDTH_MINIMUM 5
342#define SB_WIDTH_MAXIMUM 100 300#define SB_WIDTH_MAXIMUM 100
301
302/*
303 * rxvt scrollbar shadow width in pixels, must be 1 or 2
304 */
305#define SHADOW_WIDTH 1
343 306
344/* 307/*
345 * When using Rxvt scrollbar, clicking above or below the slider will move 308 * When using Rxvt scrollbar, clicking above or below the slider will move
346 * 1/4 of the screen height, if possible. Setting RXVT_SCROLL_FULL will move 309 * 1/4 of the screen height, if possible. Setting RXVT_SCROLL_FULL will move
347 * it one screen height less one line, if possible 310 * it one screen height less one line, if possible
351/* 314/*
352 * (Hops) draw an internal border line on inside edge of the scrollbar 315 * (Hops) draw an internal border line on inside edge of the scrollbar
353 */ 316 */
354/* #define SB_BORDER */ 317/* #define SB_BORDER */
355 318
356/*------------------------------MENU BAR--------------------------------*/
357/*
358 * Choose how many of (experimental) menuBars you want to be able to stack at
359 * one time.
360 * A value of 1 disables menuBar stacking.
361 * A value of 0 disables menuBar all together.
362 * Note that the amount of memory overhead is the same for any value >= 2.
363 */
364#define MENUBAR_MAX 8
365
366/*
367 * Change the default shadow style
368 */
369/* #define MENUBAR_SHADOW_IN */
370
371/*
372 * Change the default shadow style
373 */
374#define MENU_SHADOW_IN
375
376/*---------------------------MULTILINGUAL-------------------------------*/ 319/*---------------------------MULTILINGUAL-------------------------------*/
377/* 320/*
378 * Allow run-time selection of Meta (Alt) to set the 8th bit on 321 * Allow run-time selection of Meta (Alt) to set the 8th bit on
379 */ 322 */
380#define META8_OPTION 323#define META8_OPTION
389 * Have DISPLAY environment variable & "\E[7n" transmit display with IP number 332 * Have DISPLAY environment variable & "\E[7n" transmit display with IP number
390 */ 333 */
391/* #define DISPLAY_IS_IP */ 334/* #define DISPLAY_IS_IP */
392 335
393/* 336/*
394 * Have "\E[7n" transmit the display name.
395 * This has been cited as a potential security hole.
396 */
397#define ENABLE_DISPLAY_ANSWER
398
399/*
400 * Change what ESC Z transmits instead of the default "\E[?1;2c" 337 * Change what ESC Z transmits instead of the default "\E[?1;2c"
401 */ 338 */
402/* #define ESCZ_ANSWER "\033[?1;2C" */ 339/* #define ESCZ_ANSWER "\033[?1;2C" */
403 340
404/* 341/*
405 * Check the current value of the window-time/icon-name and avoid
406 * re-setting it to the same value -- avoids unnecessary window refreshes
407 */
408#define SMART_WINDOW_TITLE
409
410/*
411 * Allow foreground/background colour to be changed with an 342 * Allow foreground/background colour to be changed with an
412 * xterm escape sequence "\E]39;colour^G" -- still experimental 343 * xterm escape sequence "\E]39;colour^G"
413 */ 344 */
414#define XTERM_COLOR_CHANGE 345#define XTERM_COLOR_CHANGE
415 346
416/* 347/*
417 * Remove secondary screen's independent cursor position, a la xterm 348 * Remove secondary screen's independent cursor position, a la xterm
418 */ 349 */
419/* #define NO_SECONDARY_SCREEN_CURSOR */ 350/* #define NO_SECONDARY_SCREEN_CURSOR */
420 351
421/* 352/*
422 * If no secondary screen is available (NO_SECONDARY_SCREEN in config.h),
423 * then scroll the text up on a window change request
424 */
425#define SCROLL_ON_NO_SECONDARY
426
427/*
428 * Width of the term internal border 353 * Width of the term internal border
429 */ 354 */
430#define INTERNALBORDERWIDTH 2 355#define INTERNALBORDERWIDTH 2
431 356
432/* 357/*
440#define LINESPACE 0 365#define LINESPACE 0
441 366
442/* 367/*
443 * Default number of lines in the scrollback buffer 368 * Default number of lines in the scrollback buffer
444 */ 369 */
445#define SAVELINES 64 370#define SAVELINES 1000
446 371
447/* 372/*
448 * Provide termcap/terminfo bw support 373 * Provide termcap/terminfo bw support (wrap backwards on cub1)
449 */ 374 */
450/* #define TERMCAP_HAS_BW */ 375#define TERMCAP_HAS_BW 1
451 376
452/* 377/*
453 * MAX_NFONTS is the maximum allowed number of fonts in the list 378 * The duration of the visual bell flash in s. The default of 20ms
454 * FONT0_IDX is the default font in the list (starting at 0) 379 * corresponds to the delay given in the terminfo flash code.
455 * Sizes between multi-char fonts sets (MFONT_LIST) and single-char font 380 */
456 * sets (NFONT_LIST) have been matched up 381#define VISUAL_BELL_DURATION .020
382
383/*--------------------------------OTHER---------------------------------*/
384
385/*
386 * Enable the linux yield/usleep hack, which can dramatically improve
387 * performance by working around the linux kernel tty ratelimit bug.
388 * Unfortunately, it seems screen is negatively affected by this on some
389 * machines, so it is disabled by default. Use freebsd or any other kernel
390 * that doesn't suffer form this bug and it will be fast either way.
457 */ 391 *
458#define MAX_NFONTS 7 392 * See command.C for details.
459#define FONT0_IDX 2 393 */
460 394#if __linux__
461#define UNICODE 1 /* TODO */ 395# define LINUX_YIELD_HACK 0
462#define UTF8 1 /* TODO */
463
464#endif 396#endif
397
398#endif
399

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines