… | |
… | |
110 | |
110 | |
111 | #ifndef STDIN_FILENO |
111 | #ifndef STDIN_FILENO |
112 | # define STDIN_FILENO 0 |
112 | # define STDIN_FILENO 0 |
113 | # define STDOUT_FILENO 1 |
113 | # define STDOUT_FILENO 1 |
114 | # define STDERR_FILENO 2 |
114 | # define STDERR_FILENO 2 |
115 | #endif |
|
|
116 | |
|
|
117 | #if !defined (EACCESS) && defined(EAGAIN) |
|
|
118 | # define EACCESS EAGAIN |
|
|
119 | #endif |
115 | #endif |
120 | |
116 | |
121 | #ifndef EXIT_SUCCESS /* missing from <stdlib.h> */ |
117 | #ifndef EXIT_SUCCESS /* missing from <stdlib.h> */ |
122 | # define EXIT_SUCCESS 0 /* exit function success */ |
118 | # define EXIT_SUCCESS 0 /* exit function success */ |
123 | # define EXIT_FAILURE 1 /* exit function failure */ |
119 | # define EXIT_FAILURE 1 /* exit function failure */ |
… | |
… | |
340 | #define RS_styleShift 14 |
336 | #define RS_styleShift 14 |
341 | |
337 | |
342 | #define RS_baseattrMask (RS_Italic | RS_Bold | RS_Blink | RS_RVid | RS_Uline) |
338 | #define RS_baseattrMask (RS_Italic | RS_Bold | RS_Blink | RS_RVid | RS_Uline) |
343 | #define RS_attrMask (RS_baseattrMask | RS_fontMask) |
339 | #define RS_attrMask (RS_baseattrMask | RS_fontMask) |
344 | |
340 | |
345 | #define RS_fontCount 127 // not 127 or 256, see rxvtfont.h |
341 | #define RS_fontCount rxvt_fontset::fontCount |
346 | #define RS_fontMask 0xff000000UL // plenty(?) of fonts, includes RS_Careful |
342 | #define RS_fontMask 0xff000000UL // plenty(?) of fonts, includes RS_Careful |
347 | #define RS_fontShift 24 |
343 | #define RS_fontShift 24 |
348 | |
344 | |
349 | #define DEFAULT_RSTYLE (RS_None | Color_fg | (Color_bg << Color_Bits)) |
345 | #define DEFAULT_RSTYLE (RS_None | Color_fg | (Color_bg << Color_Bits)) |
350 | #define OVERLAY_RSTYLE (RS_None | Color_Black | (Color_Yellow << Color_Bits)) |
346 | #define OVERLAY_RSTYLE (RS_None | Color_Black | (Color_Yellow << Color_Bits)) |
… | |
… | |
912 | selection_op_t op; /* current operation */ |
908 | selection_op_t op; /* current operation */ |
913 | bool rect; /* rectangular selection? */ |
909 | bool rect; /* rectangular selection? */ |
914 | row_col_t beg; /* beginning of selection <= mark */ |
910 | row_col_t beg; /* beginning of selection <= mark */ |
915 | row_col_t mark; /* point of initial click <= end */ |
911 | row_col_t mark; /* point of initial click <= end */ |
916 | row_col_t end; /* one character past end point */ |
912 | row_col_t end; /* one character past end point */ |
|
|
913 | wchar_t *clip_text; /* text copied to the clipboard */ |
|
|
914 | unsigned int clip_len; /* length of clipboard text */ |
917 | }; |
915 | }; |
918 | |
916 | |
919 | /* ------------------------------------------------------------------------- */ |
917 | /* ------------------------------------------------------------------------- */ |
920 | |
918 | |
921 | /* screen_t flags */ |
919 | /* screen_t flags */ |
… | |
… | |
1004 | /* ---------- */ |
1002 | /* ---------- */ |
1005 | bool rvideo_state, rvideo_mode; |
1003 | bool rvideo_state, rvideo_mode; |
1006 | #ifndef NO_BELL |
1004 | #ifndef NO_BELL |
1007 | bool rvideo_bell; |
1005 | bool rvideo_bell; |
1008 | #endif |
1006 | #endif |
1009 | int num_scr; /* screen: number lines scrolled */ |
1007 | int num_scr; /* screen: number of lines scrolled */ |
1010 | int prev_ncol, /* screen: previous number of columns */ |
1008 | int prev_ncol, /* screen: previous number of columns */ |
1011 | prev_nrow; /* screen: previous number of rows */ |
1009 | prev_nrow; /* screen: previous number of rows */ |
1012 | /* ---------- */ |
1010 | /* ---------- */ |
1013 | rend_t rstyle; |
1011 | rend_t rstyle; |
1014 | /* ---------- */ |
1012 | /* ---------- */ |
… | |
… | |
1044 | SavedModes; |
1042 | SavedModes; |
1045 | /* ---------- */ |
1043 | /* ---------- */ |
1046 | Atom *xa; |
1044 | Atom *xa; |
1047 | /* ---------- */ |
1045 | /* ---------- */ |
1048 | Time selection_time, |
1046 | Time selection_time, |
1049 | selection_request_time; |
1047 | selection_request_time, |
|
|
1048 | clipboard_time; |
1050 | pid_t cmd_pid; /* process id of child */ |
1049 | pid_t cmd_pid; /* process id of child */ |
1051 | char * incr_buf; |
1050 | char * incr_buf; |
1052 | size_t incr_buf_size, incr_buf_fill; |
1051 | size_t incr_buf_size, incr_buf_fill; |
1053 | /* ---------- */ |
1052 | /* ---------- */ |
1054 | struct mouse_event MEvent; |
1053 | struct mouse_event MEvent; |
… | |
… | |
1451 | void selection_check (int check_more) NOTHROW; |
1450 | void selection_check (int check_more) NOTHROW; |
1452 | void selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW; |
1451 | void selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW; |
1453 | void selection_property (Window win, Atom prop) NOTHROW; |
1452 | void selection_property (Window win, Atom prop) NOTHROW; |
1454 | void selection_request (Time tm, int selnum = Sel_Primary) NOTHROW; |
1453 | void selection_request (Time tm, int selnum = Sel_Primary) NOTHROW; |
1455 | int selection_request_other (Atom target, int selnum) NOTHROW; |
1454 | int selection_request_other (Atom target, int selnum) NOTHROW; |
1456 | void selection_clear () NOTHROW; |
1455 | void selection_clear (bool clipboard = false) NOTHROW; |
|
|
1456 | void clipboard_copy (Time tm); |
1457 | void selection_make (Time tm); |
1457 | void selection_make (Time tm); |
1458 | bool selection_grab (Time tm) NOTHROW; |
1458 | bool selection_grab (Time tm, bool clipboard = false) NOTHROW; |
1459 | void selection_start_colrow (int col, int row) NOTHROW; |
1459 | void selection_start_colrow (int col, int row) NOTHROW; |
1460 | void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW; |
1460 | void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW; |
1461 | void selection_extend_colrow (int32_t col, int32_t row, int button3, int buttonpress, int clickchange) NOTHROW; |
1461 | void selection_extend_colrow (int32_t col, int32_t row, int button3, int buttonpress, int clickchange) NOTHROW; |
1462 | void selection_remove_trailing_spaces () NOTHROW; |
1462 | void selection_remove_trailing_spaces () NOTHROW; |
1463 | void selection_send (const XSelectionRequestEvent &rq) NOTHROW; |
1463 | void selection_send (const XSelectionRequestEvent &rq) NOTHROW; |