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.349 by ayin, Sat Jan 19 13:00:10 2008 UTC vs.
Revision 1.356 by ayin, Tue Jan 29 14:45:54 2008 UTC

209 ***************************************************************************** 209 *****************************************************************************
210 * STRUCTURES AND TYPEDEFS 210 * STRUCTURES AND TYPEDEFS
211 ***************************************************************************** 211 *****************************************************************************
212 */ 212 */
213 213
214/* If we're using either the rxvt scrollbar, keep the
215 * scrollColor resource.
216 */
217#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(PLAIN_SCROLLBAR)
218# define KEEP_SCROLLCOLOR 1
219#else
220# undef KEEP_SCROLLCOLOR
221#endif
222
223/* 214/*
224 * the 'essential' information for reporting Mouse Events 215 * the 'essential' information for reporting Mouse Events
225 * pared down from XButtonEvent 216 * pared down from XButtonEvent
226 */ 217 */
227struct mouse_event { 218struct mouse_event {
277# define NO_MOUSE_REPORT_SCROLLBAR 1 268# define NO_MOUSE_REPORT_SCROLLBAR 1
278#endif 269#endif
279 270
280#define scrollBar_esc 30 271#define scrollBar_esc 30
281 272
282#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR) 273#if !defined (RXVT_SCROLLBAR) && !defined (NEXT_SCROLLBAR)
283# define HAVE_SCROLLBARS 1 274# define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
284#endif 275#endif
285 276
286enum { 277enum {
287 NO_REFRESH = 0, /* Window not visible at all! */ 278 NO_REFRESH = 0, /* Window not visible at all! */
288 FAST_REFRESH = 1, /* Fully exposed window */ 279 FAST_REFRESH = 1, /* Fully exposed window */
394 XTerm_name = 0, 385 XTerm_name = 0,
395 XTerm_iconName = 1, 386 XTerm_iconName = 1,
396 XTerm_title = 2, 387 XTerm_title = 2,
397 XTerm_property = 3, // change X property 388 XTerm_property = 3, // change X property
398 XTerm_Color = 4, // change colors 389 XTerm_Color = 4, // change colors
399 XTerm_Color00 = 10, // not implemented, CLASH! 390 XTerm_Color00 = 10, // change fg color
400 XTerm_Color01 = 11, // not implemented 391 XTerm_Color01 = 11, // change bg color
401 XTerm_Color_cursor = 12, // change actual 'Cursor' color 392 XTerm_Color_cursor = 12, // change actual 'Cursor' color
402 XTerm_Color_pointer_fg = 13, // change actual 'Pointer' fg color 393 XTerm_Color_pointer_fg = 13, // change actual 'Pointer' fg color
403 XTerm_Color_pointer_bg = 14, // change actual 'Pointer' bg color 394 XTerm_Color_pointer_bg = 14, // change actual 'Pointer' bg color
404 XTerm_Color05 = 15, // not implemented (tektronix fg) 395 XTerm_Color05 = 15, // not implemented (tektronix fg)
405 XTerm_Color06 = 16, // not implemented (tektronix bg) 396 XTerm_Color06 = 16, // not implemented (tektronix bg)
410 XTerm_konsole30 = 30, // reserved for konsole 401 XTerm_konsole30 = 30, // reserved for konsole
411 XTerm_konsole31 = 31, // reserved for konsole 402 XTerm_konsole31 = 31, // reserved for konsole
412 XTerm_emacs51 = 51, // reserved for emacs shell 403 XTerm_emacs51 = 51, // reserved for emacs shell
413 /* 404 /*
414 * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) 405 * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL)
415 * at least Rxvt_Color_BD and Rxvt_Color_UL clash with xterm
416 */ 406 */
417 Rxvt_Color_BD = 18, // change actual 'Bold' color 407
418 Rxvt_Color_UL = 19, // change actual 'Underline' color 408 // deprecated
409 Rxvt_Color_BD = 18,
410 Rxvt_Color_UL = 19,
411 Rxvt_restoreFG = 39,
412 Rxvt_restoreBG = 49,
413
419 Rxvt_Pixmap = 20, // new bg pixmap 414 Rxvt_Pixmap = 20, // new bg pixmap
420 Rxvt_restoreFG = 39, // change default fg color
421 Rxvt_restoreBG = 49, // change default bg color
422 Rxvt_dumpscreen = 55, // dump scrollback and all of screen 415 Rxvt_dumpscreen = 55, // dump scrollback and all of screen
423 416
424 URxvt_locale = 701, // change locale 417 URxvt_locale = 701, // change locale
425 URxvt_version = 702, // request version 418 URxvt_version = 702, // request version
426 419
427 URxvt_Color_IT = 704, // change actual 'Italic' colour 420 URxvt_Color_IT = 704, // change actual 'Italic' colour
428 URxvt_Color_tint = 705, // change actual tint colour 421 URxvt_Color_tint = 705, // change actual tint colour
429 URxvt_Color_BD = 706, 422 URxvt_Color_BD = 706, // change actual 'Bold' color
430 URxvt_Color_UL = 707, 423 URxvt_Color_UL = 707, // change actual 'Underline' color
431 424
432 URxvt_font = 710, 425 URxvt_font = 710,
433 URxvt_boldFont = 711, 426 URxvt_boldFont = 711,
434 URxvt_italicFont = 712, 427 URxvt_italicFont = 712,
435 URxvt_boldItalicFont = 713, 428 URxvt_boldItalicFont = 713,
495 Color_underline, 488 Color_underline,
496#endif 489#endif
497#ifdef OPTION_HC 490#ifdef OPTION_HC
498 Color_HC, 491 Color_HC,
499#endif 492#endif
500#ifdef KEEP_SCROLLCOLOR
501 Color_scroll, 493 Color_scroll,
494#ifdef RXVT_SCROLLBAR
502 Color_trough, 495 Color_trough,
503#endif 496#endif
504#if ENABLE_TRANSPARENCY 497#if ENABLE_TRANSPARENCY
505 Color_tint, 498 Color_tint,
506#endif 499#endif
507#if OFF_FOCUS_FADING 500#if OFF_FOCUS_FADING
508 Color_fade, 501 Color_fade,
509#endif 502#endif
510 NRS_COLORS, /* */ 503 NRS_COLORS, /* */
511#ifdef KEEP_SCROLLCOLOR 504#ifdef RXVT_SCROLLBAR
512 Color_topShadow = NRS_COLORS, 505 Color_topShadow = NRS_COLORS,
513 Color_bottomShadow, 506 Color_bottomShadow,
514 TOTAL_COLORS 507 TOTAL_COLORS
515#else 508#else
516 TOTAL_COLORS = NRS_COLORS 509 TOTAL_COLORS = NRS_COLORS
552#define PrivMode_smoothScroll (1UL<<17) 545#define PrivMode_smoothScroll (1UL<<17)
553#define PrivMode_vt52 (1UL<<18) 546#define PrivMode_vt52 (1UL<<18)
554#define PrivMode_LFNL (1UL<<19) 547#define PrivMode_LFNL (1UL<<19)
555#define PrivMode_MouseBtnEvent (1UL<<20) 548#define PrivMode_MouseBtnEvent (1UL<<20)
556#define PrivMode_MouseAnyEvent (1UL<<21) 549#define PrivMode_MouseAnyEvent (1UL<<21)
550#define PrivMode_BracketPaste (1UL<<22)
557 551
558#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent) 552#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent)
559 553
560#ifdef ALLOW_132_MODE 554#ifdef ALLOW_132_MODE
561# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) 555# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK)
1148#endif 1142#endif
1149 1143
1150 void x_cb (XEvent &xev); 1144 void x_cb (XEvent &xev);
1151 xevent_watcher termwin_ev; 1145 xevent_watcher termwin_ev;
1152 xevent_watcher vt_ev; 1146 xevent_watcher vt_ev;
1153#ifdef HAVE_SCROLLBARS
1154 xevent_watcher scrollbar_ev; 1147 xevent_watcher scrollbar_ev;
1155#endif
1156 1148
1157 void child_cb (ev::child &w, int revents); ev::child child_ev; 1149 void child_cb (ev::child &w, int revents); ev::child child_ev;
1158 void destroy_cb (ev::idle &w, int revents); ev::idle destroy_ev; 1150 void destroy_cb (ev::idle &w, int revents); ev::idle destroy_ev;
1159 void refresh_check (); 1151 void refresh_check ();
1160 void flush (); 1152 void flush ();
1261 void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg); 1253 void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg);
1262 void process_sgr_mode (unsigned int nargs, const int *arg); 1254 void process_sgr_mode (unsigned int nargs, const int *arg);
1263 void process_graphics (); 1255 void process_graphics ();
1264 // init.C 1256 // init.C
1265 void init_vars (); 1257 void init_vars ();
1266 void init_secondary ();
1267 const char **init_resources (int argc, const char *const *argv); 1258 const char **init_resources (int argc, const char *const *argv);
1268 void init (int argc, const char *const *argv, stringvec *envv); 1259 void init (int argc, const char *const *argv, stringvec *envv);
1269 void init_env (); 1260 void init_env ();
1270 void set_locale (const char *locale); 1261 void set_locale (const char *locale);
1271 void init_xlocale (); 1262 void init_xlocale ();
1488 1479
1489 // scrollbar.C 1480 // scrollbar.C
1490 void resize_scrollbar (); 1481 void resize_scrollbar ();
1491 int scrollbar_mapping (int map); 1482 int scrollbar_mapping (int map);
1492 int scrollbar_show (int update); 1483 int scrollbar_show (int update);
1493 void setup_scrollbar (const char *scrollalign, const char *scrollstyle, const char *thickness);
1494 1484
1495 // xdefaults.C 1485 // xdefaults.C
1496 void get_options (int argc, const char *const *argv); 1486 void get_options (int argc, const char *const *argv);
1497 int parse_keysym (const char *str, const char *arg); 1487 int parse_keysym (const char *str, const char *arg);
1498 const char *x_resource (const char *name); 1488 const char *x_resource (const char *name);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines