… | |
… | |
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 | inline void set_environ (stringvec *envv) |
|
|
125 | { |
|
|
126 | if (envv) |
|
|
127 | environ = (char **)envv->begin (); |
|
|
128 | } |
|
|
129 | |
|
|
130 | inline void set_environ (char **envv) |
|
|
131 | { |
|
|
132 | if (envv) |
|
|
133 | environ = envv; |
|
|
134 | } |
117 | |
135 | |
118 | /* |
136 | /* |
119 | ***************************************************************************** |
137 | ***************************************************************************** |
120 | * STRUCTURES AND TYPEDEFS |
138 | * STRUCTURES AND TYPEDEFS |
121 | ***************************************************************************** |
139 | ***************************************************************************** |
… | |
… | |
434 | XTerm_property = 3, // change X property |
452 | XTerm_property = 3, // change X property |
435 | XTerm_Color = 4, // change colors |
453 | XTerm_Color = 4, // change colors |
436 | XTerm_Color00 = 10, // not implemented, CLASH! |
454 | XTerm_Color00 = 10, // not implemented, CLASH! |
437 | XTerm_Color01 = 11, // not implemented |
455 | XTerm_Color01 = 11, // not implemented |
438 | XTerm_Color_cursor = 12, // change actual 'Cursor' color |
456 | XTerm_Color_cursor = 12, // change actual 'Cursor' color |
439 | XTerm_Color_pointer_fg = 13, // change actual 'Pointer' color |
457 | XTerm_Color_pointer_fg = 13, // change actual 'Pointer' fg color |
440 | XTerm_Color_pointer_bg = 14, // not implemented |
458 | XTerm_Color_pointer_bg = 14, // change actual 'Pointer' bg color |
441 | XTerm_Color05 = 15, // not implemented |
459 | XTerm_Color05 = 15, // not implemented (tektronix fg) |
442 | XTerm_Color06 = 16, // not implemented |
460 | XTerm_Color06 = 16, // not implemented (tektronix bg) |
443 | XTerm_Color_RV = 17, // change actual 'Highlight' color |
461 | XTerm_Color_RV = 17, // change actual 'Highlight' color |
444 | XTerm_logfile = 46, // not implemented |
462 | XTerm_logfile = 46, // not implemented |
445 | XTerm_font = 50, |
463 | XTerm_font = 50, |
446 | |
464 | |
447 | XTerm_konsole30 = 30, // reserved for konsole |
465 | XTerm_konsole30 = 30, // reserved for konsole |
448 | XTerm_konsole31 = 31, // reserved for konsole |
466 | XTerm_konsole31 = 31, // reserved for konsole |
449 | XTerm_emacs51 = 51, // reserved for emacs shell |
467 | XTerm_emacs51 = 51, // reserved for emacs shell |
450 | /* |
468 | /* |
451 | * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) |
469 | * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) |
|
|
470 | * at least Rxvt_Color_BD and Rxvt_Color_UL clash with xterm |
452 | */ |
471 | */ |
453 | XTerm_Color_BD = 18, // change actual 'Bold' color |
472 | Rxvt_Color_BD = 18, // change actual 'Bold' color |
454 | XTerm_Color_UL = 19, // change actual 'Underline' color |
473 | Rxvt_Color_UL = 19, // change actual 'Underline' color |
455 | XTerm_Pixmap = 20, // new bg pixmap |
474 | Rxvt_Pixmap = 20, // new bg pixmap |
456 | XTerm_restoreFG = 39, // change default fg color |
475 | Rxvt_restoreFG = 39, // change default fg color |
457 | XTerm_restoreBG = 49, // change default bg color |
476 | Rxvt_restoreBG = 49, // change default bg color |
458 | XTerm_dumpscreen = 55, // dump scrollback and all of screen |
477 | Rxvt_dumpscreen = 55, // dump scrollback and all of screen |
459 | |
478 | |
460 | URxvt_locale = 701, // change locale |
479 | URxvt_locale = 701, // change locale |
461 | URxvt_Menu = 703, // set menu item |
480 | URxvt_Menu = 703, // set menu item |
462 | URxvt_Color_IT = 704, // change actual 'Italic' colour |
481 | URxvt_Color_IT = 704, // change actual 'Italic' colour |
463 | URxvt_Color_tint = 705, // change actual tint colour |
482 | URxvt_Color_tint = 705, // change actual tint colour |
|
|
483 | URxvt_Color_BD = 706, |
|
|
484 | URxvt_Color_UL = 707, |
464 | |
485 | |
465 | URxvt_font = 710, |
486 | URxvt_font = 710, |
466 | URxvt_boldFont = 711, |
487 | URxvt_boldFont = 711, |
467 | URxvt_italicFont = 712, |
488 | URxvt_italicFont = 712, |
468 | URxvt_boldItalicFont = 713, |
489 | URxvt_boldItalicFont = 713, |
… | |
… | |
695 | #define Col2Pixel(col) ((int32_t)Width2Pixel(col)) |
716 | #define Col2Pixel(col) ((int32_t)Width2Pixel(col)) |
696 | #define Row2Pixel(row) ((int32_t)Height2Pixel(row)) |
717 | #define Row2Pixel(row) ((int32_t)Height2Pixel(row)) |
697 | #define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) |
718 | #define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) |
698 | #define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) |
719 | #define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) |
699 | |
720 | |
700 | #define TEMP_ENV temp_environ temp_environ (envv) |
|
|
701 | |
|
|
702 | #define OPTION(opt) (options & (opt)) |
721 | #define OPTION(opt) (options & (opt)) |
703 | #define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ |
722 | #define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ |
704 | | Opt_jumpScroll | Opt_secondaryScreen \ |
723 | | Opt_jumpScroll | Opt_secondaryScreen \ |
705 | | Opt_pastableTabs | Opt_intensityStyles) |
724 | | Opt_pastableTabs | Opt_intensityStyles) |
706 | |
725 | |
… | |
… | |
1189 | #endif |
1208 | #endif |
1190 | |
1209 | |
1191 | // modifies first argument(!) |
1210 | // modifies first argument(!) |
1192 | void paste (char *data, unsigned int len); |
1211 | void paste (char *data, unsigned int len); |
1193 | |
1212 | |
1194 | void flush (); |
1213 | long vt_emask, vt_emask_perl; |
|
|
1214 | |
|
|
1215 | void vt_select_input () |
|
|
1216 | { |
|
|
1217 | XSelectInput (display->display, vt, vt_emask | vt_emask_perl); |
|
|
1218 | } |
1195 | |
1219 | |
1196 | #if TRANSPARENT |
1220 | #if TRANSPARENT |
1197 | void rootwin_cb (XEvent &xev); |
1221 | void rootwin_cb (XEvent &xev); |
1198 | xevent_watcher rootwin_ev; |
1222 | xevent_watcher rootwin_ev; |
1199 | #endif |
1223 | #endif |
1200 | |
1224 | |
1201 | void x_cb (XEvent &xev); |
1225 | void x_cb (XEvent &xev); |
|
|
1226 | void flush (); |
1202 | xevent_watcher termwin_ev; |
1227 | xevent_watcher termwin_ev; |
1203 | xevent_watcher vt_ev; |
1228 | xevent_watcher vt_ev; |
1204 | #ifdef HAVE_SCROLLBARS |
1229 | #ifdef HAVE_SCROLLBARS |
1205 | xevent_watcher scrollbar_ev; |
1230 | xevent_watcher scrollbar_ev; |
1206 | #endif |
1231 | #endif |