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.9 by pcg, Sun Feb 22 08:09:37 2004 UTC vs.
Revision 1.40 by ayin, Thu Jan 19 16:37:54 2006 UTC

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/* Default mode to restore when releasing the PTS device. It is relaxed to be
40 * compatible with most systems, change it to a more secure value if your
41 * system supports it (0640 for example).
42 */
43#define RESTORE_TTY_MODE 0666
44
45/*
46 * Define if you want to use a separate process for pty/tty handling
47 * when running setuid/setgid. You need this when making it setuid/setgid.
48 */
49#define PTYTTY_HELPER 1
36 50
37/*-----------------------SCREEN OPTIONS AND COLOURS---------------------*/ 51/*-----------------------SCREEN OPTIONS AND COLOURS---------------------*/
52
38/* 53/*
39 * Define the name of the environment variable to be used in 54 * 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 */ 55 *
44#define PATH_ENV "RXVTPATH" 56 * Some of these configuration options have not been tested within the new
57 * rxvt-unicode framework. Changing them should work, might have no effect,
58 * destroy your disks or have any other effects. You may freely try (and
59 * report bugs, too!), but don't _expect_ them to work.
60 */
45 61
46/* 62/*
47 * Avoid enabling the colour cursor (-cr, cursorColor, cursorColor2) 63 * Avoid enabling the colour cursor (-cr, cursorColor, cursorColor2)
48 */ 64 */
49/* #define NO_CURSORCOLOR */ 65/* #define NO_CURSORCOLOR */
50 66
51/* 67/*
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 68 * Make colours match xterm colours instead of `traditional' rxvt colours
60 */ 69 */
61#define XTERM_COLORS 70#define XTERM_COLORS
62 71
63/* 72/*
64 * Disable separate colours for bold, underline and reverse video 73 * Disable separate colours for bold, underline and reverse video
65 */ 74 */
66/* #define NO_BOLD_UNDERLINE_REVERSE */ 75/* #define NO_BOLD_UNDERLINE_REVERSE */
67 76
68/* 77/*
69 * Don't bother cleaning up pixel droppings. If you don't use bold
70 * overstrike then you don't usually need this
71 */
72#define NO_PIXEL_DROPPING_AVOIDANCE
73
74/*
75 * Define maximum possible columns and rows 78 * Define maximum possible columns and rows
76 */ 79 */
77#define MAX_COLS 4000 80#define MAX_COLS 10000
78#define MAX_ROWS 1000 81#define MAX_ROWS 10000
82
83/*
84 * Define maximum possible savelines
85 */
86#define MAX_SAVELINES 10000000
79 87
80/* 88/*
81 * Define default colours for certain items. If you have a low colour 89 * Define default colours for certain items. If you have a low colour
82 * display, then consider using colours which are already pre-allocated: 90 * display, then consider using colours which are already pre-allocated:
83 * Black (#000000) 91 * Black (#000000)
100/* These colours MUST be defined */ 108/* These colours MUST be defined */
101#define COLOR_FOREGROUND "Black" 109#define COLOR_FOREGROUND "Black"
102#define COLOR_BACKGROUND "White" 110#define COLOR_BACKGROUND "White"
103#define COLOR_SCROLLBAR "#B2B2B2" /* scrollColor match Netscape */ 111#define COLOR_SCROLLBAR "#B2B2B2" /* scrollColor match Netscape */
104#define COLOR_SCROLLTROUGH "#969696" 112#define COLOR_SCROLLTROUGH "#969696"
113
105/* 114/*
106 * The cursor colours are special. Be very careful about setting these: 115 * The cursor colours are special. Be very careful about setting these:
107 * foreground/background colours may be modified by command line or resources 116 * foreground/background colours may be modified by command line or resources
108 * prior to this allocation. Also, they are not valid if NO_CURSORCOLOR is 117 * prior to this allocation. Also, they are not valid if NO_CURSORCOLOR is
109 * defined 118 * defined
113 122
114/* 123/*
115 * Define to remove support for XCopyArea () support. XCopyArea () is useful 124 * Define to remove support for XCopyArea () support. XCopyArea () is useful
116 * for scrolling on non-local X displays 125 * for scrolling on non-local X displays
117 */ 126 */
118/* #define NO_SLOW_LINK_SUPPORT */ 127#undef NO_SLOW_LINK_SUPPORT
119 128
120/* 129/*
121 * Printer pipe which will be used for emulation of attached vt100 printer 130 * Printer pipe which will be used for emulation of attached vt100 printer
122 */ 131 */
123#define PRINTPIPE "lpr" 132#define PRINTPIPE "lpr"
125/* 134/*
126 * Allow 80/132 mode switching on startup 135 * Allow 80/132 mode switching on startup
127 */ 136 */
128/* #define ALLOW_132_MODE */ 137/* #define ALLOW_132_MODE */
129 138
130/*------------------------------RESOURCES-------------------------------*/
131/*
132 * Define to find installed application defaults for rxvt
133 * Only if USE_XGETDEFAULT is not defined.
134 */
135/* #define USE_XAPPLOADDIR */
136
137/* 139/*
138 * Add support for the Offix DND (Drag 'n' Drop) protocol 140 * Add support for the Offix DND (Drag 'n' Drop) protocol
139 */ 141 */
140/* #define OFFIX_DND */ 142/* #define OFFIX_DND */
141 143
143 145
144/* 146/*
145 * Define defaults for backspace and delete keys - unless they have been 147 * Define defaults for backspace and delete keys - unless they have been
146 * configured out with --disable-backspace-key / --disable-delete-key 148 * configured out with --disable-backspace-key / --disable-delete-key
147 */ 149 */
148//#define DEFAULT_BACKSPACE "DEC" /* SPECIAL */ 150#define DEFAULT_BACKSPACE "DEC" /* SPECIAL */
149#define DEFAULT_BACKSPACE "\010" /* wrong, but match terminfo etc. */
150#define DEFAULT_DELETE "\033[3~" 151#define DEFAULT_DELETE "\033[3~"
151
152/*
153 * Choose one of these values to be the `hotkey' for changing font.
154 * This has been superceded and is only for you older users
155 */
156/* #define HOTKEY_CTRL */
157/* #define HOTKEY_META */
158 152
159/* 153/*
160 * To use 154 * To use
161 * Home = "\E[1~", End = "\E[4~" 155 * Home = "\E[1~", End = "\E[4~"
162 * instead of 156 * instead of
165/* #define LINUX_KEYS */ 159/* #define LINUX_KEYS */
166 160
167/* 161/*
168 * Enable the keysym resource which allows you to define strings associated 162 * Enable the keysym resource which allows you to define strings associated
169 * with various KeySyms (0xFF00 - 0xFFFF). 163 * with various KeySyms (0xFF00 - 0xFFFF).
170 * Only works with the default hand-rolled resources. 164 * Required by perl.
171 */ 165 */
172#ifndef NO_RESOURCES 166#if ENABLE_FRILLS || ENABLE_PERL
173# define KEYSYM_RESOURCE 167# define KEYSYM_RESOURCE
174#endif 168#endif
175 169
176/* 170/*
177 * Modifier/s to use to allow up/down arrows and Priot/Next keys 171 * Modifier/s to use to allow up/down arrows and Prior/Next keys
178 * to scroll single or page-fulls 172 * to scroll single or page-fulls
179 */ 173 */
180#define SCROLL_ON_SHIFT 174#define SCROLL_ON_SHIFT
181/* #define SCROLL_ON_CTRL */ 175/* #define SCROLL_ON_CTRL */
182/* #define SCROLL_ON_META */ 176/* #define SCROLL_ON_META */
218 212
219/* 213/*
220 * Default separating chars for multiple-click selection 214 * Default separating chars for multiple-click selection
221 * Space and tab are separate separating characters and are not settable 215 * Space and tab are separate separating characters and are not settable
222 */ 216 */
223#define CUTCHARS "\"&'()*,;<=>?@[\\]^`{|}~" 217#define CUTCHARS "\"&'()*,;<=>?@[\\]^`{|}"
224 218
225/* 219/*
226 * Add run-time support for changing the cutchars for double click selection 220 * Add run-time support for changing the cutchars for double click selection
227 */ 221 */
228#define CUTCHAR_RESOURCE 222#define CUTCHAR_RESOURCE
229 223
230/* 224/*
231 * Have mouse reporting include double-click info for button1 225 * Have mouse reporting include double-click info for button1
232 */ 226 */
233/* #define MOUSE_REPORT_DOUBLECLICK */ 227//#define MOUSE_REPORT_DOUBLECLICK
234 228
235/* 229/*
236 * Set delay between multiple click events [default: 500 milliseconds] 230 * Set delay between multiple click events [default: 500 milliseconds]
237 */ 231 */
238/* #define MULTICLICK_TIME 500 */ 232/* #define MULTICLICK_TIME 500 */
242 * this long after the last mouse click [default: 50 milliseconds] 236 * this long after the last mouse click [default: 50 milliseconds]
243 */ 237 */
244#define MOUSE_THRESHOLD 50 238#define MOUSE_THRESHOLD 50
245 239
246/* 240/*
247 * If mouse wheel is defined, then scrolling is by 5 lines (or 1 line
248 * if the shift key is down). Scrolling can be smooth or jump scrolling
249 */
250/* #define JUMP_MOUSE_WHEEL */
251
252/*
253 * Set delay periods for continuous scrolling with scrollbar buttons 241 * Set delay periods for continuous scrolling with scrollbar buttons
254 */ 242 */
255/* #define SCROLLBAR_INITIAL_DELAY 40 */ 243/* #define SCROLLBAR_INITIAL_DELAY 0.33 */
256/* #define SCROLLBAR_CONTINUOUS_DELAY 2 */ 244/* #define SCROLLBAR_CONTINUOUS_DELAY 0.05 */
257 245
258/* 246/*
259 * The speed of selection scrolling is proportional to the distance 247 * The speed of selection scrolling is proportional to the distance
260 * the mouse pointer is out of the text window. This is the max 248 * the mouse pointer is out of the text window. This is the max
261 * number of lines to scroll at a time. 249 * number of lines to scroll at a time.
262 */ 250 */
263#define SELECTION_SCROLL_MAX_LINES 2 251#define SELECTION_SCROLL_MAX_LINES 8
264 252
265/* 253/*
266 * The number of lines (measured in character's heights, not pixels) 254 * The number of lines (measured in character's heights, not pixels)
267 * the pointer must be out of the window for each increase in the 255 * the pointer must be out of the window for each increase in the
268 * number of lines scrolled. 256 * number of lines scrolled.
269 */ 257 */
270#define SELECTION_SCROLL_LINE_SPEEDUP 4 258#define SELECTION_SCROLL_LINE_SPEEDUP 3
271 259
272/*--------------------------------MISC----------------------------------*/ 260/*--------------------------------MISC----------------------------------*/
273/* 261/*
274 * Disable to reset tty device to pre-incovation state
275 */
276#define RESET_TTY_TO_COMMON_DEFAULTS
277
278/*
279 * Only log in wtmp file when we're a login shell (-ls option) 262 * Only log in wtmp and lastlog files when we're a login shell (-ls option)
280 */ 263 */
281#define WTMP_ONLY_ON_LOGIN 264#define LOG_ONLY_ON_LOGIN
282
283/*
284 * When pasting ACS characters, convert to similar normal characters
285 */
286/* #define ACS_ASCII */
287
288/*
289 * Default ascii characters to which ACS symbols are converted
290 */
291#ifdef ACS_ASCII
292# define ACS_CHARS ".# o+ ----+---__++--|<> =#. "
293#endif
294 265
295/*--------------------------------BELL----------------------------------*/ 266/*--------------------------------BELL----------------------------------*/
296/* 267/*
297 * Disable all bell indications 268 * Disable all bell indications
298 */ 269 */
331/* 302/*
332 * (Hops) draw an internal border line on inside edge of the scrollbar 303 * (Hops) draw an internal border line on inside edge of the scrollbar
333 */ 304 */
334/* #define SB_BORDER */ 305/* #define SB_BORDER */
335 306
336/*------------------------------MENU BAR--------------------------------*/
337/*
338 * Choose how many of (experimental) menuBars you want to be able to stack at
339 * one time.
340 * A value of 1 disables menuBar stacking.
341 * A value of 0 disables menuBar all together.
342 * Note that the amount of memory overhead is the same for any value >= 2.
343 */
344#define MENUBAR_MAX 8
345
346/*
347 * Change the default shadow style
348 */
349/* #define MENUBAR_SHADOW_IN */
350
351/*
352 * Change the default shadow style
353 */
354#define MENU_SHADOW_IN
355
356/*---------------------------MULTILINGUAL-------------------------------*/ 307/*---------------------------MULTILINGUAL-------------------------------*/
357/* 308/*
358 * Allow run-time selection of Meta (Alt) to set the 8th bit on 309 * Allow run-time selection of Meta (Alt) to set the 8th bit on
359 */ 310 */
360#define META8_OPTION 311#define META8_OPTION
369 * Have DISPLAY environment variable & "\E[7n" transmit display with IP number 320 * Have DISPLAY environment variable & "\E[7n" transmit display with IP number
370 */ 321 */
371/* #define DISPLAY_IS_IP */ 322/* #define DISPLAY_IS_IP */
372 323
373/* 324/*
374 * Have "\E[7n" transmit the display name.
375 * This has been cited as a potential security hole.
376 */
377#define ENABLE_DISPLAY_ANSWER
378
379/*
380 * Change what ESC Z transmits instead of the default "\E[?1;2c" 325 * Change what ESC Z transmits instead of the default "\E[?1;2c"
381 */ 326 */
382/* #define ESCZ_ANSWER "\033[?1;2C" */ 327/* #define ESCZ_ANSWER "\033[?1;2C" */
383 328
384/* 329/*
385 * Check the current value of the window-time/icon-name and avoid
386 * re-setting it to the same value -- avoids unnecessary window refreshes
387 */
388#define SMART_WINDOW_TITLE
389
390/*
391 * Allow foreground/background colour to be changed with an 330 * Allow foreground/background colour to be changed with an
392 * xterm escape sequence "\E]39;colour^G" -- still experimental 331 * xterm escape sequence "\E]39;colour^G"
393 */ 332 */
394#define XTERM_COLOR_CHANGE 333#define XTERM_COLOR_CHANGE
395 334
396/* 335/*
397 * Remove secondary screen's independent cursor position, a la xterm 336 * Remove secondary screen's independent cursor position, a la xterm
398 */ 337 */
399/* #define NO_SECONDARY_SCREEN_CURSOR */ 338/* #define NO_SECONDARY_SCREEN_CURSOR */
400 339
401/* 340/*
402 * If no secondary screen is available (NO_SECONDARY_SCREEN in config.h),
403 * then scroll the text up on a window change request
404 */
405#define SCROLL_ON_NO_SECONDARY
406
407/*
408 * Width of the term internal border 341 * Width of the term internal border
409 */ 342 */
410#define INTERNALBORDERWIDTH 2 343#define INTERNALBORDERWIDTH 2
411 344
412/* 345/*
420#define LINESPACE 0 353#define LINESPACE 0
421 354
422/* 355/*
423 * Default number of lines in the scrollback buffer 356 * Default number of lines in the scrollback buffer
424 */ 357 */
425#define SAVELINES 64 358#define SAVELINES 1000
426 359
427/* 360/*
428 * Provide termcap/terminfo bw support 361 * Provide termcap/terminfo bw support (wrap backwards on cub1)
429 */ 362 */
430/* #define TERMCAP_HAS_BW */ 363#define TERMCAP_HAS_BW
431 364
432/* 365/*
433 * MAX_NFONTS is the maximum allowed number of fonts in the list 366 * Some (older, e.g. fvwm 2.2.2) window managers need some time when
434 * FONT0_IDX is the default font in the list (starting at 0) 367 * updating window positions. If transparency isn't working correctly
435 * Sizes between multi-char fonts sets (MFONT_LIST) and single-char font 368 * then you might try out this one.
436 * sets (NFONT_LIST) have been matched up
437 */ 369 */
438#define MAX_NFONTS 7 370/* #define WAIT_FOR_WM */
439#define FONT0_IDX 2
440 371
441#define UNICODE 1 /* TODO */ 372/*
442#define UTF8 1 /* TODO */ 373 * The duration of the visual bell flash in µs. The default of 20ms
374 * corresponds to the delay given in the terminfo flash code.
375 */
376#define VISUAL_BELL_DURATION 20000
443 377
444#endif 378#endif
379

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines