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

Comparing rxvt-unicode/src/rxvt.h (file contents):
Revision 1.196 by root, Wed Jan 11 02:13:56 2006 UTC vs.
Revision 1.198 by root, Thu Jan 12 00:35:39 2006 UTC

112void rxvt_freecommastring (char **cs); 112void rxvt_freecommastring (char **cs);
113char * rxvt_File_find (const char *file, const char *ext, const char *path); 113char * rxvt_File_find (const char *file, const char *ext, const char *path);
114void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h); 114void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h);
115void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type); 115void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type);
116void rxvt_usleep (int usecs); 116void rxvt_usleep (int usecs);
117
118/////////////////////////////////////////////////////////////////////////////
119
120// temporarily replace the process environment
121extern char **environ;
122extern char **rxvt_environ; // the original environ pointer
123
124struct 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,
694#define Pixel2Height(y) ((int32_t)(y) / (int32_t)fheight) 729#define Pixel2Height(y) ((int32_t)(y) / (int32_t)fheight)
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
700#define TEMP_ENV temp_environ temp_environ (envv)
701 734
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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines