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.434 by sf-exg, Sun Feb 6 11:42:28 2011 UTC vs.
Revision 1.439 by sf-exg, Thu Apr 7 12:19:41 2011 UTC

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
402enum { 392enum {
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 ,
907 int saveLines; /* number of lines that fit in scrollback */ 897 int saveLines; /* number of lines that fit in scrollback */
908 int total_rows; /* total number of rows in this terminal */ 898 int total_rows; /* total number of rows in this terminal */
909 int term_start; /* term lines start here */ 899 int term_start; /* term lines start here */
910 int view_start; /* scrollback view starts here */ 900 int view_start; /* scrollback view starts here */
911 int top_row; /* topmost row index of scrollback */ 901 int top_row; /* topmost row index of scrollback */
912 Window parent[6]; /* parent identifiers - we're parent[0] */ 902 Window parent; /* parent identifier */
913 Window vt; /* vt100 window */ 903 Window vt; /* vt100 window */
914 GC gc; /* GC for drawing */ 904 GC gc; /* GC for drawing */
915 Pixmap pixmap; 905 Pixmap pixmap;
916 rxvt_drawable *drawable; 906 rxvt_drawable *drawable;
917 rxvt_fontset *fontset[4]; 907 rxvt_fontset *fontset[4];
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;
1094 rxvt_selection *selection_req;
1107 pid_t cmd_pid; /* process id of child */ 1095 pid_t cmd_pid; /* process id of child */
1108 char * incr_buf;
1109 size_t incr_buf_size, incr_buf_fill;
1110/* ---------- */ 1096/* ---------- */
1111 struct mouse_event MEvent; 1097 struct mouse_event MEvent;
1112 XComposeStatus compose; 1098 XComposeStatus compose;
1113 static struct termios def_tio; 1099 static struct termios def_tio;
1114 row_col_t oldcursor; 1100 row_col_t oldcursor;
1303 void child_cb (ev::child &w, int revents); ev::child child_ev; 1289 void child_cb (ev::child &w, int revents); ev::child child_ev;
1304 void destroy_cb (ev::idle &w, int revents); ev::idle destroy_ev; 1290 void destroy_cb (ev::idle &w, int revents); ev::idle destroy_ev;
1305 void refresh_check (); 1291 void refresh_check ();
1306 void flush (); 1292 void flush ();
1307 void flush_cb (ev::timer &w, int revents); ev::timer flush_ev; 1293 void flush_cb (ev::timer &w, int revents); ev::timer flush_ev;
1294 void cmdbuf_reify ();
1295 void cmdbuf_append (const char *str, size_t count);
1308 bool pty_fill (); 1296 bool pty_fill ();
1309 void pty_cb (ev::io &w, int revents); ev::io pty_ev; 1297 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 1298
1312#ifdef CURSOR_BLINK 1299#ifdef CURSOR_BLINK
1313 void cursor_blink_cb (ev::timer &w, int revents); ev::timer cursor_blink_ev; 1300 void cursor_blink_cb (ev::timer &w, int revents); ev::timer cursor_blink_ev;
1314#endif 1301#endif
1315#ifdef TEXT_BLINK 1302#ifdef TEXT_BLINK
1372#endif 1359#endif
1373 1360
1374 // command.C 1361 // command.C
1375 void key_press (XKeyEvent &ev); 1362 void key_press (XKeyEvent &ev);
1376 void key_release (XKeyEvent &ev); 1363 void key_release (XKeyEvent &ev);
1377 unsigned int cmd_write (const char *str, unsigned int count);
1378 1364
1379 wchar_t next_char () NOTHROW; 1365 wchar_t next_char () NOTHROW;
1380 wchar_t cmd_getc () THROW ((class out_of_input)); 1366 wchar_t cmd_getc () THROW ((class out_of_input));
1381 uint32_t next_octet () NOTHROW; 1367 uint32_t next_octet () NOTHROW;
1382 uint32_t cmd_get8 () THROW ((class out_of_input)); 1368 uint32_t cmd_get8 () THROW ((class out_of_input));
1409 void process_color_seq (int report, int color, const char *str, char resp); 1395 void process_color_seq (int report, int color, const char *str, char resp);
1410 void process_xterm_seq (int op, char *str, char resp); 1396 void process_xterm_seq (int op, char *str, char resp);
1411 int privcases (int mode, unsigned long bit); 1397 int privcases (int mode, unsigned long bit);
1412 void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg); 1398 void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg);
1413 void process_sgr_mode (unsigned int nargs, const int *arg); 1399 void process_sgr_mode (unsigned int nargs, const int *arg);
1414 void process_graphics ();
1415 // init.C 1400 // init.C
1416 void init_vars (); 1401 void init_vars ();
1417 const char **init_resources (int argc, const char *const *argv); 1402 const char **init_resources (int argc, const char *const *argv);
1418 void init (int argc, const char *const *argv, stringvec *envv); 1403 void init (int argc, const char *const *argv, stringvec *envv);
1419 void init_env (); 1404 void init_env ();
1586 void scr_xor_span (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle) NOTHROW; 1571 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; 1572 void scr_reverse_selection () NOTHROW;
1588 void scr_dump (int fd) NOTHROW; 1573 void scr_dump (int fd) NOTHROW;
1589 1574
1590 void selection_check (int check_more) NOTHROW; 1575 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; 1576 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; 1577 void selection_clear (bool clipboard = false) NOTHROW;
1596 void selection_make (Time tm); 1578 void selection_make (Time tm);
1597 bool selection_grab (Time tm, bool clipboard = false) NOTHROW; 1579 bool selection_grab (Time tm, bool clipboard = false) NOTHROW;
1598 void selection_start_colrow (int col, int row) NOTHROW; 1580 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; 1581 void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines