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.242 by root, Wed Jan 25 02:42:06 2006 UTC vs.
Revision 1.247 by root, Mon Jan 30 04:27:17 2006 UTC

432// fake styles 432// fake styles
433#define RS_Blink 0x00010000UL // blink 433#define RS_Blink 0x00010000UL // blink
434#define RS_RVid 0x00020000UL // reverse video 434#define RS_RVid 0x00020000UL // reverse video
435#define RS_Uline 0x00040000UL // underline 435#define RS_Uline 0x00040000UL // underline
436 436
437// toggle this to force redraw, must be != RS_Careful
438#define RS_redraw 0x01000000UL
439
437// 5 custom bits for extensions 440// 5 custom bits for extensions
438#define RS_customCount 32 441#define RS_customCount 32
439#define RS_customMask 0x00f80000UL 442#define RS_customMask 0x00f80000UL
440#define RS_customShift 19 443#define RS_customShift 19
441 444
510 Rxvt_restoreFG = 39, // change default fg color 513 Rxvt_restoreFG = 39, // change default fg color
511 Rxvt_restoreBG = 49, // change default bg color 514 Rxvt_restoreBG = 49, // change default bg color
512 Rxvt_dumpscreen = 55, // dump scrollback and all of screen 515 Rxvt_dumpscreen = 55, // dump scrollback and all of screen
513 516
514 URxvt_locale = 701, // change locale 517 URxvt_locale = 701, // change locale
518 URxvt_version = 702, // request version
515 519
516 URxvt_Color_IT = 704, // change actual 'Italic' colour 520 URxvt_Color_IT = 704, // change actual 'Italic' colour
517 URxvt_Color_tint = 705, // change actual tint colour 521 URxvt_Color_tint = 705, // change actual tint colour
518 URxvt_Color_BD = 706, 522 URxvt_Color_BD = 706,
519 URxvt_Color_UL = 707, 523 URxvt_Color_UL = 707,
699 ***************************************************************************** 703 *****************************************************************************
700 * MACRO DEFINES 704 * MACRO DEFINES
701 ***************************************************************************** 705 *****************************************************************************
702 */ 706 */
703#define dLocal(type,name) type const name = this->name 707#define dLocal(type,name) type const name = this->name
704#define dDisp Display *disp = this->display->display
705 708
706// for speed reasons, we assume that all latin1 characters 709// for speed reasons, we assume that all latin1 characters
707// are single-width (the first unicdoe combining character 710// are single-width (the first unicode combining character
708// is actually 0x300, but ascii is what matters most). 711// is actually 0x300, but ascii is what matters most).
709#define WCWIDTH(c) ((c) < 0x100 ? 1 : wcwidth (c)) 712#define WCWIDTH(c) ((c) & ~0xff ? wcwidth (c) : 1)
710 713
711/* convert pixel dimensions to row/column values. Everything as int32_t */ 714/* convert pixel dimensions to row/column values. Everything as int32_t */
712#define Pixel2Col(x) Pixel2Width((int32_t)(x)) 715#define Pixel2Col(x) Pixel2Width((int32_t)(x))
713#define Pixel2Row(y) Pixel2Height((int32_t)(y)) 716#define Pixel2Row(y) Pixel2Height((int32_t)(y))
714#define Pixel2Width(x) ((int32_t)(x) / (int32_t)fwidth) 717#define Pixel2Width(x) ((int32_t)(x) / (int32_t)fwidth)
911 914
912#ifdef KEYSYM_RESOURCE 915#ifdef KEYSYM_RESOURCE
913 class keyboard_manager; 916 class keyboard_manager;
914#endif 917#endif
915 918
916struct rxvt_term : zero_initialized, rxvt_vars { 919struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen {
917 log_callback *log_hook; // log error messages through this hook, if != 0 920 log_callback *log_hook; // log error messages through this hook, if != 0
918 getfd_callback *getfd_hook; // convert remote to local fd, if != 0 921 getfd_callback *getfd_hook; // convert remote to local fd, if != 0
919#if ENABLE_PERL 922#if ENABLE_PERL
920 rxvt_perl_term perl; 923 rxvt_perl_term perl;
921#endif 924#endif
1066 void scr_overlay_set (int x, int y, const wchar_t *s) NOTHROW; 1069 void scr_overlay_set (int x, int y, const wchar_t *s) NOTHROW;
1067#endif 1070#endif
1068 1071
1069 vector<void *> allocated; // free these memory blocks with free() 1072 vector<void *> allocated; // free these memory blocks with free()
1070 1073
1071 char *env_windowid; /* environmental variable WINDOWID */ 1074 char env_windowid[21]; /* environmental variable WINDOWID */
1075 char env_colorfgbg[sizeof ("COLORFGBG=default;default;bg") + 1];
1072 char *env_display; /* environmental variable DISPLAY */ 1076 char *env_display; /* environmental variable DISPLAY */
1073 char *env_term; /* environmental variable TERM */ 1077 char *env_term; /* environmental variable TERM */
1074 char *env_colorfgbg; 1078
1075 char *locale; 1079 char *locale;
1076 char charsets[4]; 1080 char charsets[4];
1077 char *v_buffer; /* pointer to physical buffer */ 1081 char *v_buffer; /* pointer to physical buffer */
1078 unsigned int v_buflen; /* size of area to write */ 1082 unsigned int v_buflen; /* size of area to write */
1079 stringvec *argv, *envv; /* if != 0, will be freed on destroy time */ 1083 stringvec *argv, *envv; /* if != 0, will be freed at destroy time */
1080 1084
1081#ifdef KEYSYM_RESOURCE 1085#ifdef KEYSYM_RESOURCE
1082 keyboard_manager *keyboard; 1086 keyboard_manager *keyboard;
1083#endif 1087#endif
1084 1088
1110 1114
1111 long vt_emask, vt_emask_perl, vt_emask_xim; 1115 long vt_emask, vt_emask_perl, vt_emask_xim;
1112 1116
1113 void vt_select_input () const NOTHROW 1117 void vt_select_input () const NOTHROW
1114 { 1118 {
1115 XSelectInput (display->display, vt, vt_emask | vt_emask_perl | vt_emask_xim); 1119 XSelectInput (xdisp, vt, vt_emask | vt_emask_perl | vt_emask_xim);
1116 } 1120 }
1117 1121
1118#if TRANSPARENT 1122#if TRANSPARENT
1119 void rootwin_cb (XEvent &xev); 1123 void rootwin_cb (XEvent &xev);
1120 xevent_watcher rootwin_ev; 1124 xevent_watcher rootwin_ev;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines