… | |
… | |
125 | #endif |
125 | #endif |
126 | |
126 | |
127 | #ifndef EXIT_SUCCESS /* missing from <stdlib.h> */ |
127 | #ifndef EXIT_SUCCESS /* missing from <stdlib.h> */ |
128 | # define EXIT_SUCCESS 0 /* exit function success */ |
128 | # define EXIT_SUCCESS 0 /* exit function success */ |
129 | # define EXIT_FAILURE 1 /* exit function failure */ |
129 | # define EXIT_FAILURE 1 /* exit function failure */ |
130 | #endif |
|
|
131 | |
|
|
132 | #ifndef PATH_MAX |
|
|
133 | # define PATH_MAX 16384 |
|
|
134 | #endif |
130 | #endif |
135 | |
131 | |
136 | /****************************************************************************/ |
132 | /****************************************************************************/ |
137 | |
133 | |
138 | // exception thrown on fatal (per-instance) errors |
134 | // exception thrown on fatal (per-instance) errors |
… | |
… | |
308 | # define NSCREENS 0 |
304 | # define NSCREENS 0 |
309 | #else |
305 | #else |
310 | # define NSCREENS 1 |
306 | # define NSCREENS 1 |
311 | #endif |
307 | #endif |
312 | |
308 | |
313 | /* special (internal) prefix for font commands */ |
|
|
314 | #define FONT_CMD '#' |
|
|
315 | #define FONT_DN "#-" |
|
|
316 | #define FONT_UP "#+" |
|
|
317 | |
|
|
318 | /* flags for rxvt_scr_gotorc () */ |
309 | /* flags for rxvt_term::scr_gotorc () */ |
319 | enum { |
310 | enum { |
320 | C_RELATIVE = 1, /* col movement is relative */ |
311 | C_RELATIVE = 1, /* col movement is relative */ |
321 | R_RELATIVE = 2, /* row movement is relative */ |
312 | R_RELATIVE = 2, /* row movement is relative */ |
322 | RELATIVE = C_RELATIVE | R_RELATIVE, |
313 | RELATIVE = C_RELATIVE | R_RELATIVE, |
323 | }; |
314 | }; |
324 | |
315 | |
325 | /* modes for rxvt_scr_insdel_chars (), rxvt_scr_insdel_lines () */ |
316 | /* modes for rxvt_term::scr_insdel_chars (), rxvt_term::scr_insdel_lines () */ |
326 | enum { |
317 | enum { |
327 | INSERT = -1, /* don't change these values */ |
318 | INSERT = -1, /* don't change these values */ |
328 | DELETE = +1, |
319 | DELETE = +1, |
329 | ERASE = +2, |
320 | ERASE = +2, |
330 | }; |
321 | }; |
331 | |
322 | |
332 | /* modes for rxvt_scr_page () - scroll page. used by scrollbar window */ |
323 | /* modes for rxvt_term::scr_page () - scroll page. used by scrollbar window */ |
333 | enum page_dirn { |
324 | enum page_dirn { |
334 | UP, |
325 | UP, |
335 | DN, |
326 | DN, |
336 | NO_DIR, |
327 | NO_DIR, |
337 | }; |
328 | }; |
338 | |
329 | |
339 | /* arguments for rxvt_scr_change_screen () */ |
330 | /* arguments for rxvt_term::scr_change_screen () */ |
340 | enum { |
331 | enum { |
341 | PRIMARY = 0, |
332 | PRIMARY = 0, |
342 | SECONDARY, |
333 | SECONDARY, |
343 | }; |
334 | }; |
344 | |
335 | |