… | |
… | |
112 | void rxvt_freecommastring (char **cs); |
112 | void rxvt_freecommastring (char **cs); |
113 | char * rxvt_File_find (const char *file, const char *ext, const char *path); |
113 | char * rxvt_File_find (const char *file, const char *ext, const char *path); |
114 | void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h); |
114 | void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h); |
115 | void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type); |
115 | void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type); |
116 | void rxvt_usleep (int usecs); |
116 | void rxvt_usleep (int usecs); |
|
|
117 | |
|
|
118 | ///////////////////////////////////////////////////////////////////////////// |
|
|
119 | |
|
|
120 | // temporarily replace the process environment |
|
|
121 | extern char **environ; |
|
|
122 | extern char **rxvt_environ; // the original environ pointer |
|
|
123 | |
|
|
124 | struct temp_environ |
|
|
125 | { |
|
|
126 | char **prev; |
|
|
127 | |
|
|
128 | temp_environ (const stringvec *envv) |
|
|
129 | : prev(environ) |
|
|
130 | { |
|
|
131 | if (envv) |
|
|
132 | environ = (char **)envv->begin (); |
|
|
133 | } |
|
|
134 | |
|
|
135 | temp_environ (char **env) |
|
|
136 | : prev(environ) |
|
|
137 | { |
|
|
138 | if (env) |
|
|
139 | environ = env; |
|
|
140 | } |
|
|
141 | |
|
|
142 | ~temp_environ () |
|
|
143 | { |
|
|
144 | environ = prev; |
|
|
145 | } |
|
|
146 | }; |
|
|
147 | |
|
|
148 | #define TEMP_ENV temp_environ temp_environ (envv) |
117 | |
149 | |
118 | /* |
150 | /* |
119 | ***************************************************************************** |
151 | ***************************************************************************** |
120 | * STRUCTURES AND TYPEDEFS |
152 | * STRUCTURES AND TYPEDEFS |
121 | ***************************************************************************** |
153 | ***************************************************************************** |
… | |
… | |
434 | XTerm_property = 3, // change X property |
466 | XTerm_property = 3, // change X property |
435 | XTerm_Color = 4, // change colors |
467 | XTerm_Color = 4, // change colors |
436 | XTerm_Color00 = 10, // not implemented, CLASH! |
468 | XTerm_Color00 = 10, // not implemented, CLASH! |
437 | XTerm_Color01 = 11, // not implemented |
469 | XTerm_Color01 = 11, // not implemented |
438 | XTerm_Color_cursor = 12, // change actual 'Cursor' color |
470 | XTerm_Color_cursor = 12, // change actual 'Cursor' color |
439 | XTerm_Color_pointer_fg = 13, // change actual 'Pointer' color |
471 | XTerm_Color_pointer_fg = 13, // change actual 'Pointer' fg color |
440 | XTerm_Color_pointer_bg = 14, // not implemented |
472 | XTerm_Color_pointer_bg = 14, // change actual 'Pointer' bg color |
441 | XTerm_Color05 = 15, // not implemented |
473 | XTerm_Color05 = 15, // not implemented (tektronix fg) |
442 | XTerm_Color06 = 16, // not implemented |
474 | XTerm_Color06 = 16, // not implemented (tektronix bg) |
443 | XTerm_Color_RV = 17, // change actual 'Highlight' color |
475 | XTerm_Color_RV = 17, // change actual 'Highlight' color |
444 | XTerm_logfile = 46, // not implemented |
476 | XTerm_logfile = 46, // not implemented |
445 | XTerm_font = 50, |
477 | XTerm_font = 50, |
446 | |
478 | |
447 | XTerm_konsole30 = 30, // reserved for konsole |
479 | XTerm_konsole30 = 30, // reserved for konsole |
448 | XTerm_konsole31 = 31, // reserved for konsole |
480 | XTerm_konsole31 = 31, // reserved for konsole |
449 | XTerm_emacs51 = 51, // reserved for emacs shell |
481 | XTerm_emacs51 = 51, // reserved for emacs shell |
450 | /* |
482 | /* |
451 | * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) |
483 | * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) |
|
|
484 | * at least Rxvt_Color_BD and Rxvt_Color_UL clash with xterm |
452 | */ |
485 | */ |
453 | XTerm_Color_BD = 18, // change actual 'Bold' color |
486 | Rxvt_Color_BD = 18, // change actual 'Bold' color |
454 | XTerm_Color_UL = 19, // change actual 'Underline' color |
487 | Rxvt_Color_UL = 19, // change actual 'Underline' color |
455 | XTerm_Pixmap = 20, // new bg pixmap |
488 | Rxvt_Pixmap = 20, // new bg pixmap |
456 | XTerm_restoreFG = 39, // change default fg color |
489 | Rxvt_restoreFG = 39, // change default fg color |
457 | XTerm_restoreBG = 49, // change default bg color |
490 | Rxvt_restoreBG = 49, // change default bg color |
458 | XTerm_dumpscreen = 55, // dump scrollback and all of screen |
491 | Rxvt_dumpscreen = 55, // dump scrollback and all of screen |
459 | |
492 | |
460 | URxvt_locale = 701, // change locale |
493 | URxvt_locale = 701, // change locale |
461 | URxvt_Menu = 703, // set menu item |
494 | URxvt_Menu = 703, // set menu item |
462 | URxvt_Color_IT = 704, // change actual 'Italic' colour |
495 | URxvt_Color_IT = 704, // change actual 'Italic' colour |
463 | URxvt_Color_tint = 705, // change actual tint colour |
496 | URxvt_Color_tint = 705, // change actual tint colour |
|
|
497 | URxvt_Color_BD = 706, |
|
|
498 | URxvt_Color_UL = 707, |
464 | |
499 | |
465 | URxvt_font = 710, |
500 | URxvt_font = 710, |
466 | URxvt_boldFont = 711, |
501 | URxvt_boldFont = 711, |
467 | URxvt_italicFont = 712, |
502 | URxvt_italicFont = 712, |
468 | URxvt_boldItalicFont = 713, |
503 | URxvt_boldItalicFont = 713, |
… | |
… | |
695 | #define Col2Pixel(col) ((int32_t)Width2Pixel(col)) |
730 | #define Col2Pixel(col) ((int32_t)Width2Pixel(col)) |
696 | #define Row2Pixel(row) ((int32_t)Height2Pixel(row)) |
731 | #define Row2Pixel(row) ((int32_t)Height2Pixel(row)) |
697 | #define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) |
732 | #define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) |
698 | #define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) |
733 | #define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) |
699 | |
734 | |
700 | #define TEMP_ENV temp_environ temp_environ (envv) |
|
|
701 | |
|
|
702 | #define OPTION(opt) (options & (opt)) |
735 | #define OPTION(opt) (options & (opt)) |
703 | #define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ |
736 | #define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ |
704 | | Opt_jumpScroll | Opt_secondaryScreen \ |
737 | | Opt_jumpScroll | Opt_secondaryScreen \ |
705 | | Opt_pastableTabs | Opt_intensityStyles) |
738 | | Opt_pastableTabs | Opt_intensityStyles) |
706 | |
739 | |
… | |
… | |
1256 | |
1289 | |
1257 | bool pty_fill (); |
1290 | bool pty_fill (); |
1258 | |
1291 | |
1259 | void init_secondary (); |
1292 | void init_secondary (); |
1260 | const char **init_resources (int argc, const char *const *argv); |
1293 | const char **init_resources (int argc, const char *const *argv); |
|
|
1294 | const char *x_resource (const char *name); |
1261 | void init_env (); |
1295 | void init_env (); |
1262 | void set_locale (const char *locale); |
1296 | void set_locale (const char *locale); |
1263 | void init_xlocale (); |
1297 | void init_xlocale (); |
1264 | void init_command (const char *const *argv); |
1298 | void init_command (const char *const *argv); |
1265 | void run_command (const char *const *argv); |
1299 | void run_command (const char *const *argv); |