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.195 by root, Wed Jan 11 00:59:58 2006 UTC vs.
Revision 1.199 by root, Thu Jan 12 01:30:53 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
124inline void set_environ (stringvec *envv)
125{
126 if (envv)
127 environ = (char **)envv->begin ();
128}
129
130inline 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
1256 1275
1257 bool pty_fill (); 1276 bool pty_fill ();
1258 1277
1259 void init_secondary (); 1278 void init_secondary ();
1260 const char **init_resources (int argc, const char *const *argv); 1279 const char **init_resources (int argc, const char *const *argv);
1280 const char *x_resource (const char *name);
1261 void init_env (); 1281 void init_env ();
1262 void set_locale (const char *locale); 1282 void set_locale (const char *locale);
1263 void init_xlocale (); 1283 void init_xlocale ();
1264 void init_command (const char *const *argv); 1284 void init_command (const char *const *argv);
1265 void run_command (const char *const *argv); 1285 void run_command (const char *const *argv);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines