… | |
… | |
394 | XTerm_name = 0, |
394 | XTerm_name = 0, |
395 | XTerm_iconName = 1, |
395 | XTerm_iconName = 1, |
396 | XTerm_title = 2, |
396 | XTerm_title = 2, |
397 | XTerm_property = 3, // change X property |
397 | XTerm_property = 3, // change X property |
398 | XTerm_Color = 4, // change colors |
398 | XTerm_Color = 4, // change colors |
399 | XTerm_Color00 = 10, // not implemented, CLASH! |
399 | XTerm_Color00 = 10, // change fg color |
400 | XTerm_Color01 = 11, // not implemented |
400 | XTerm_Color01 = 11, // change bg color |
401 | XTerm_Color_cursor = 12, // change actual 'Cursor' color |
401 | XTerm_Color_cursor = 12, // change actual 'Cursor' color |
402 | XTerm_Color_pointer_fg = 13, // change actual 'Pointer' fg color |
402 | XTerm_Color_pointer_fg = 13, // change actual 'Pointer' fg color |
403 | XTerm_Color_pointer_bg = 14, // change actual 'Pointer' bg color |
403 | XTerm_Color_pointer_bg = 14, // change actual 'Pointer' bg color |
404 | XTerm_Color05 = 15, // not implemented (tektronix fg) |
404 | XTerm_Color05 = 15, // not implemented (tektronix fg) |
405 | XTerm_Color06 = 16, // not implemented (tektronix bg) |
405 | XTerm_Color06 = 16, // not implemented (tektronix bg) |
… | |
… | |
410 | XTerm_konsole30 = 30, // reserved for konsole |
410 | XTerm_konsole30 = 30, // reserved for konsole |
411 | XTerm_konsole31 = 31, // reserved for konsole |
411 | XTerm_konsole31 = 31, // reserved for konsole |
412 | XTerm_emacs51 = 51, // reserved for emacs shell |
412 | XTerm_emacs51 = 51, // reserved for emacs shell |
413 | /* |
413 | /* |
414 | * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) |
414 | * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) |
415 | * at least Rxvt_Color_BD and Rxvt_Color_UL clash with xterm |
|
|
416 | */ |
415 | */ |
417 | Rxvt_Color_BD = 18, // change actual 'Bold' color |
416 | |
418 | Rxvt_Color_UL = 19, // change actual 'Underline' color |
417 | // deprecated |
|
|
418 | Rxvt_Color_BD = 18, |
|
|
419 | Rxvt_Color_UL = 19, |
|
|
420 | Rxvt_restoreFG = 39, |
|
|
421 | Rxvt_restoreBG = 49, |
|
|
422 | |
419 | Rxvt_Pixmap = 20, // new bg pixmap |
423 | 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 |
424 | Rxvt_dumpscreen = 55, // dump scrollback and all of screen |
423 | |
425 | |
424 | URxvt_locale = 701, // change locale |
426 | URxvt_locale = 701, // change locale |
425 | URxvt_version = 702, // request version |
427 | URxvt_version = 702, // request version |
426 | |
428 | |
427 | URxvt_Color_IT = 704, // change actual 'Italic' colour |
429 | URxvt_Color_IT = 704, // change actual 'Italic' colour |
428 | URxvt_Color_tint = 705, // change actual tint colour |
430 | URxvt_Color_tint = 705, // change actual tint colour |
429 | URxvt_Color_BD = 706, |
431 | URxvt_Color_BD = 706, // change actual 'Bold' color |
430 | URxvt_Color_UL = 707, |
432 | URxvt_Color_UL = 707, // change actual 'Underline' color |
431 | |
433 | |
432 | URxvt_font = 710, |
434 | URxvt_font = 710, |
433 | URxvt_boldFont = 711, |
435 | URxvt_boldFont = 711, |
434 | URxvt_italicFont = 712, |
436 | URxvt_italicFont = 712, |
435 | URxvt_boldItalicFont = 713, |
437 | URxvt_boldItalicFont = 713, |
… | |
… | |
657 | |
659 | |
658 | #if ENABLE_STYLES |
660 | #if ENABLE_STYLES |
659 | # define FONTSET(style) fontset[GET_STYLE (style)] |
661 | # define FONTSET(style) fontset[GET_STYLE (style)] |
660 | #else |
662 | #else |
661 | # define FONTSET(style) fontset[0] |
663 | # define FONTSET(style) fontset[0] |
662 | #endif |
|
|
663 | |
|
|
664 | #ifdef HAVE_SCROLLBARS |
|
|
665 | # define scrollbar_TotalWidth() (scrollBar.width + sb_shadow * 2) |
|
|
666 | #else |
|
|
667 | # define scrollbar_TotalWidth() (0) |
|
|
668 | #endif |
664 | #endif |
669 | |
665 | |
670 | typedef callback<void (const char *)> log_callback; |
666 | typedef callback<void (const char *)> log_callback; |
671 | typedef callback<int (int)> getfd_callback; |
667 | typedef callback<int (int)> getfd_callback; |
672 | |
668 | |
… | |
… | |
932 | scrollBar_t scrollBar; |
928 | scrollBar_t scrollBar; |
933 | uint8_t options[(Opt_count + 7) >> 3]; |
929 | uint8_t options[(Opt_count + 7) >> 3]; |
934 | XSizeHints szHint; |
930 | XSizeHints szHint; |
935 | rxvt_color *pix_colors; |
931 | rxvt_color *pix_colors; |
936 | Cursor TermWin_cursor; /* cursor for vt window */ |
932 | Cursor TermWin_cursor; /* cursor for vt window */ |
937 | int sb_shadow; /* scrollbar shadow width */ |
|
|
938 | int numlock_state; |
933 | int numlock_state; |
939 | line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf |
934 | line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf |
940 | line_t *drawn_buf; // text on screen |
935 | line_t *drawn_buf; // text on screen |
941 | line_t *swap_buf; // lines for swap buffer |
936 | line_t *swap_buf; // lines for swap buffer |
942 | char *tabs; /* per location: 1 == tab-stop */ |
937 | char *tabs; /* per location: 1 == tab-stop */ |
… | |
… | |
983 | |
978 | |
984 | unsigned char refresh_type, |
979 | unsigned char refresh_type, |
985 | #ifdef META8_OPTION |
980 | #ifdef META8_OPTION |
986 | meta_char, /* Alt-key prefix */ |
981 | meta_char, /* Alt-key prefix */ |
987 | #endif |
982 | #endif |
988 | scrollbar_align, |
|
|
989 | selection_wait, |
983 | selection_wait, |
990 | selection_type; |
984 | selection_type; |
991 | /* ---------- */ |
985 | /* ---------- */ |
992 | bool rvideo_state, rvideo_mode; |
986 | bool rvideo_state, rvideo_mode; |
993 | #ifndef NO_BELL |
987 | #ifndef NO_BELL |
… | |
… | |
1011 | /* give proper Scroll behaviour */ |
1005 | /* give proper Scroll behaviour */ |
1012 | #if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) |
1006 | #if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) |
1013 | mouse_slip_wheel_speed, |
1007 | mouse_slip_wheel_speed, |
1014 | #endif |
1008 | #endif |
1015 | refresh_count, |
1009 | refresh_count, |
1016 | last_bot, /* scrollbar last bottom position */ |
|
|
1017 | last_top, /* scrollbar last top position */ |
|
|
1018 | last_state, /* scrollbar last state */ |
|
|
1019 | scrollbar_len, |
|
|
1020 | window_vt_x, |
1010 | window_vt_x, |
1021 | window_vt_y, |
1011 | window_vt_y, |
1022 | window_sb_x, |
1012 | window_sb_x, |
1023 | mouse_row, |
1013 | mouse_row, |
1024 | mouse_col, |
1014 | mouse_col, |
… | |
… | |
1066 | selection_request_time; |
1056 | selection_request_time; |
1067 | pid_t cmd_pid; /* process id of child */ |
1057 | pid_t cmd_pid; /* process id of child */ |
1068 | char * incr_buf; |
1058 | char * incr_buf; |
1069 | size_t incr_buf_size, incr_buf_fill; |
1059 | size_t incr_buf_size, incr_buf_fill; |
1070 | /* ---------- */ |
1060 | /* ---------- */ |
1071 | Cursor leftptr_cursor; |
|
|
1072 | /* ---------- */ |
|
|
1073 | struct mouse_event MEvent; |
1061 | struct mouse_event MEvent; |
1074 | XComposeStatus compose; |
1062 | XComposeStatus compose; |
1075 | struct termios tio; |
1063 | struct termios tio; |
1076 | row_col_t oldcursor; |
1064 | row_col_t oldcursor; |
1077 | #ifdef HAVE_BG_PIXMAP |
1065 | #ifdef HAVE_BG_PIXMAP |
… | |
… | |
1275 | void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg); |
1263 | void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg); |
1276 | void process_sgr_mode (unsigned int nargs, const int *arg); |
1264 | void process_sgr_mode (unsigned int nargs, const int *arg); |
1277 | void process_graphics (); |
1265 | void process_graphics (); |
1278 | // init.C |
1266 | // init.C |
1279 | void init_vars (); |
1267 | void init_vars (); |
1280 | void init_secondary (); |
|
|
1281 | const char **init_resources (int argc, const char *const *argv); |
1268 | const char **init_resources (int argc, const char *const *argv); |
|
|
1269 | void init (int argc, const char *const *argv, stringvec *envv); |
1282 | void init_env (); |
1270 | void init_env (); |
1283 | void set_locale (const char *locale); |
1271 | void set_locale (const char *locale); |
1284 | void init_xlocale (); |
1272 | void init_xlocale (); |
1285 | void init_command (const char *const *argv); |
1273 | void init_command (const char *const *argv); |
1286 | void run_command (const char *const *argv); |
1274 | void run_command (const char *const *argv); |
… | |
… | |
1293 | void tt_winch (); |
1281 | void tt_winch (); |
1294 | rxvt_term (); |
1282 | rxvt_term (); |
1295 | ~rxvt_term (); |
1283 | ~rxvt_term (); |
1296 | void destroy (); |
1284 | void destroy (); |
1297 | void emergency_cleanup (); |
1285 | void emergency_cleanup (); |
1298 | void init (int argc, const char *const *argv, stringvec *envv); |
|
|
1299 | void recolour_cursor (); |
1286 | void recolour_cursor (); |
1300 | void resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent); |
1287 | void resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent); |
1301 | void window_calc (unsigned int newwidth, unsigned int newheight); |
1288 | void window_calc (unsigned int newwidth, unsigned int newheight); |
1302 | bool set_fonts (); |
1289 | bool set_fonts (); |
1303 | void set_string_property (Atom prop, const char *str, int len = -1); |
1290 | void set_string_property (Atom prop, const char *str, int len = -1); |