… | |
… | |
386 | #define RS_baseattrMask (RS_Italic | RS_Bold | RS_Blink | RS_RVid | RS_Uline) |
386 | #define RS_baseattrMask (RS_Italic | RS_Bold | RS_Blink | RS_RVid | RS_Uline) |
387 | #define RS_attrMask (RS_baseattrMask | RS_fontMask) |
387 | #define RS_attrMask (RS_baseattrMask | RS_fontMask) |
388 | |
388 | |
389 | #define DEFAULT_RSTYLE (RS_None | (Color_fg << RS_fgShift) | (Color_bg << RS_bgShift)) |
389 | #define DEFAULT_RSTYLE (RS_None | (Color_fg << RS_fgShift) | (Color_bg << RS_bgShift)) |
390 | #define OVERLAY_RSTYLE (RS_None | (Color_Black << RS_fgShift) | (Color_Yellow << RS_bgShift)) |
390 | #define OVERLAY_RSTYLE (RS_None | (Color_Black << RS_fgShift) | (Color_Yellow << RS_bgShift)) |
391 | |
|
|
392 | #define Sel_none 0 /* Not waiting */ |
|
|
393 | #define Sel_normal 0x01 /* normal selection */ |
|
|
394 | #define Sel_incr 0x02 /* incremental selection */ |
|
|
395 | #define Sel_Primary 0x01 |
|
|
396 | #define Sel_Secondary 0x02 |
|
|
397 | #define Sel_Clipboard 0x03 |
|
|
398 | #define Sel_whereMask 0x0f |
|
|
399 | #define Sel_CompoundText 0x10 /* last request was COMPOUND_TEXT */ |
|
|
400 | #define Sel_UTF8String 0x20 /* last request was UTF8_STRING */ |
|
|
401 | |
391 | |
402 | enum { |
392 | enum { |
403 | C0_NUL = 0x00, |
393 | C0_NUL = 0x00, |
404 | C0_SOH, C0_STX, C0_ETX, C0_EOT, C0_ENQ, C0_ACK, C0_BEL, |
394 | C0_SOH, C0_STX, C0_ETX, C0_EOT, C0_ENQ, C0_ACK, C0_BEL, |
405 | C0_BS , C0_HT , C0_LF , C0_VT , C0_FF , C0_CR , C0_SO , C0_SI , |
395 | C0_BS , C0_HT , C0_LF , C0_VT , C0_FF , C0_CR , C0_SO , C0_SI , |
… | |
… | |
1051 | seen_resize:1, /* whether we had a resize event */ |
1041 | seen_resize:1, /* whether we had a resize event */ |
1052 | parsed_geometry:1; |
1042 | parsed_geometry:1; |
1053 | |
1043 | |
1054 | unsigned char refresh_type, |
1044 | unsigned char refresh_type, |
1055 | #ifdef META8_OPTION |
1045 | #ifdef META8_OPTION |
1056 | meta_char, /* Alt-key prefix */ |
1046 | meta_char; /* Alt-key prefix */ |
1057 | #endif |
1047 | #endif |
1058 | selection_wait, |
|
|
1059 | selection_type; |
|
|
1060 | /* ---------- */ |
1048 | /* ---------- */ |
1061 | bool rvideo_state, rvideo_mode; |
1049 | bool rvideo_state, rvideo_mode; |
1062 | #ifndef NO_BELL |
1050 | #ifndef NO_BELL |
1063 | bool rvideo_bell; |
1051 | bool rvideo_bell; |
1064 | #endif |
1052 | #endif |
… | |
… | |
1100 | SavedModes; |
1088 | SavedModes; |
1101 | /* ---------- */ |
1089 | /* ---------- */ |
1102 | Atom *xa; |
1090 | Atom *xa; |
1103 | /* ---------- */ |
1091 | /* ---------- */ |
1104 | Time selection_time, |
1092 | Time selection_time, |
1105 | selection_request_time, |
|
|
1106 | clipboard_time; |
1093 | clipboard_time; |
1107 | pid_t cmd_pid; /* process id of child */ |
1094 | pid_t cmd_pid; /* process id of child */ |
1108 | char * incr_buf; |
|
|
1109 | size_t incr_buf_size, incr_buf_fill; |
|
|
1110 | /* ---------- */ |
1095 | /* ---------- */ |
1111 | struct mouse_event MEvent; |
1096 | struct mouse_event MEvent; |
1112 | XComposeStatus compose; |
1097 | XComposeStatus compose; |
1113 | static struct termios def_tio; |
1098 | static struct termios def_tio; |
1114 | row_col_t oldcursor; |
1099 | row_col_t oldcursor; |
… | |
… | |
1305 | void refresh_check (); |
1290 | void refresh_check (); |
1306 | void flush (); |
1291 | void flush (); |
1307 | void flush_cb (ev::timer &w, int revents); ev::timer flush_ev; |
1292 | void flush_cb (ev::timer &w, int revents); ev::timer flush_ev; |
1308 | bool pty_fill (); |
1293 | bool pty_fill (); |
1309 | void pty_cb (ev::io &w, int revents); ev::io pty_ev; |
1294 | void pty_cb (ev::io &w, int revents); ev::io pty_ev; |
1310 | void incr_cb (ev::timer &w, int revents) NOTHROW; ev::timer incr_ev; |
|
|
1311 | |
1295 | |
1312 | #ifdef CURSOR_BLINK |
1296 | #ifdef CURSOR_BLINK |
1313 | void cursor_blink_cb (ev::timer &w, int revents); ev::timer cursor_blink_ev; |
1297 | void cursor_blink_cb (ev::timer &w, int revents); ev::timer cursor_blink_ev; |
1314 | #endif |
1298 | #endif |
1315 | #ifdef TEXT_BLINK |
1299 | #ifdef TEXT_BLINK |
… | |
… | |
1586 | void scr_xor_span (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle) NOTHROW; |
1570 | void scr_xor_span (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle) NOTHROW; |
1587 | void scr_reverse_selection () NOTHROW; |
1571 | void scr_reverse_selection () NOTHROW; |
1588 | void scr_dump (int fd) NOTHROW; |
1572 | void scr_dump (int fd) NOTHROW; |
1589 | |
1573 | |
1590 | void selection_check (int check_more) NOTHROW; |
1574 | void selection_check (int check_more) NOTHROW; |
1591 | void selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW; |
|
|
1592 | void selection_property (Window win, Atom prop) NOTHROW; |
|
|
1593 | void selection_request (Time tm, int selnum = Sel_Primary) NOTHROW; |
1575 | void selection_request (Time tm, int selnum = Sel_Primary) NOTHROW; |
1594 | int selection_request_other (Atom target, int selnum) NOTHROW; |
|
|
1595 | void selection_clear (bool clipboard = false) NOTHROW; |
1576 | void selection_clear (bool clipboard = false) NOTHROW; |
1596 | void selection_make (Time tm); |
1577 | void selection_make (Time tm); |
1597 | bool selection_grab (Time tm, bool clipboard = false) NOTHROW; |
1578 | bool selection_grab (Time tm, bool clipboard = false) NOTHROW; |
1598 | void selection_start_colrow (int col, int row) NOTHROW; |
1579 | void selection_start_colrow (int col, int row) NOTHROW; |
1599 | void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW; |
1580 | void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW; |