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.410 by sf-exg, Mon Jul 19 16:43:21 2010 UTC vs.
Revision 1.421 by root, Tue Dec 7 19:10:00 2010 UTC

555#define PrivMode_vt52 (1UL<<18) 555#define PrivMode_vt52 (1UL<<18)
556#define PrivMode_LFNL (1UL<<19) 556#define PrivMode_LFNL (1UL<<19)
557#define PrivMode_MouseBtnEvent (1UL<<20) 557#define PrivMode_MouseBtnEvent (1UL<<20)
558#define PrivMode_MouseAnyEvent (1UL<<21) 558#define PrivMode_MouseAnyEvent (1UL<<21)
559#define PrivMode_BracketPaste (1UL<<22) 559#define PrivMode_BracketPaste (1UL<<22)
560#define PrivMode_ExtModeMouse (1UL<<23) // xterm pseudo-utf-8 hack
561#define PrivMode_ExtMouseRight (1UL<<24) // xterm pseudo-utf-8, but works in non-utf-8-locales
560 562
561#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent) 563#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent)
562 564
563#ifdef ALLOW_132_MODE 565#ifdef ALLOW_132_MODE
564# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) 566# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK)
807{ 809{
808 int x, y, w, h; // overlay dimensions 810 int x, y, w, h; // overlay dimensions
809 text_t **text; 811 text_t **text;
810 rend_t **rend; 812 rend_t **rend;
811 813
812 // while tempting to add swap() etc. here, it effetcively only increases code size 814 // while tempting to add swap() etc. here, it effectively only increases code size
813}; 815};
814 816
815/* ------------------------------------------------------------------------- */ 817/* ------------------------------------------------------------------------- */
816 818
817typedef struct 819typedef struct
949#define Screen_WrapNext (1<<4) /* need to wrap for next char? */ 951#define Screen_WrapNext (1<<4) /* need to wrap for next char? */
950#define Screen_DefaultFlags (Screen_VisibleCursor | Screen_Autowrap) 952#define Screen_DefaultFlags (Screen_VisibleCursor | Screen_Autowrap)
951 953
952/* rxvt_vars.options */ 954/* rxvt_vars.options */
953enum { 955enum {
954# define def(name,idx) Opt_ ## name = idx,
955# define nodef(name) Opt_ ## name = 0, 956# define def(name) Opt_ ## name,
957# define nodef(name) Opt_prev_ ## name, Opt_ ## name = 0, Opt_next_ ## name = Opt_prev_ ## name - 1,
958 Opt_0,
956# include "optinc.h" 959# include "optinc.h"
957# undef nodef 960# undef nodef
958# undef def 961# undef def
959Opt_count 962 Opt_count
960}; 963};
961 964
962/* ------------------------------------------------------------------------- */ 965/* ------------------------------------------------------------------------- */
963 966
964struct rxvt_vars : TermWin_t 967struct rxvt_vars : TermWin_t
1074 char * incr_buf; 1077 char * incr_buf;
1075 size_t incr_buf_size, incr_buf_fill; 1078 size_t incr_buf_size, incr_buf_fill;
1076/* ---------- */ 1079/* ---------- */
1077 struct mouse_event MEvent; 1080 struct mouse_event MEvent;
1078 XComposeStatus compose; 1081 XComposeStatus compose;
1079 struct termios tio; 1082 static struct termios def_tio;
1080 row_col_t oldcursor; 1083 row_col_t oldcursor;
1081#ifdef HAVE_BG_PIXMAP 1084#ifdef HAVE_BG_PIXMAP
1082 bgPixmap_t bgPixmap; 1085 bgPixmap_t bgPixmap;
1083#endif 1086#endif
1084#ifdef HAVE_AFTERIMAGE 1087#ifdef HAVE_AFTERIMAGE
1158 void rootwin_cb (XEvent &xev); 1161 void rootwin_cb (XEvent &xev);
1159 xevent_watcher rootwin_ev; 1162 xevent_watcher rootwin_ev;
1160#endif 1163#endif
1161#ifdef HAVE_BG_PIXMAP 1164#ifdef HAVE_BG_PIXMAP
1162 void update_background (); 1165 void update_background ();
1163#if TRACE_PIXMAPS
1164 void trace_update_background (const char *file, int line);
1165# define update_background() trace_update_background (__FILE__, __LINE__)
1166#endif
1167 void update_background_cb (ev::timer &w, int revents); 1166 void update_background_cb (ev::timer &w, int revents);
1168 ev::timer update_background_ev; 1167 ev::timer update_background_ev;
1169#endif 1168#endif
1170 1169
1171 void x_cb (XEvent &xev); 1170 void x_cb (XEvent &xev);
1297 int run_child (const char *const *argv); 1296 int run_child (const char *const *argv);
1298 void color_aliases (int idx); 1297 void color_aliases (int idx);
1299 void create_windows (int argc, const char *const *argv); 1298 void create_windows (int argc, const char *const *argv);
1300 void get_colours (); 1299 void get_colours ();
1301 void get_ourmods (); 1300 void get_ourmods ();
1301 void set_icon (const char *file);
1302 // main.C 1302 // main.C
1303 void tt_winch (); 1303 void tt_winch ();
1304 rxvt_term (); 1304 rxvt_term ();
1305 ~rxvt_term (); 1305 ~rxvt_term ();
1306 void destroy (); 1306 void destroy ();
1380 return base; 1380 return base;
1381 } 1381 }
1382 1382
1383 bool option (uint8_t opt) const NOTHROW 1383 bool option (uint8_t opt) const NOTHROW
1384 { 1384 {
1385 if (!opt)
1386 return 0;
1387
1388 --opt;
1389 return options[opt >> 3] & (1 << (opt & 7)); 1385 return options[opt >> 3] & (1 << (opt & 7));
1390 } 1386 }
1391 1387
1392 void set_option (uint8_t opt, bool set = true) NOTHROW 1388 void set_option (uint8_t opt, bool set = true) NOTHROW;
1393 {
1394 if (!opt)
1395 return;
1396
1397 --opt;
1398 if (set)
1399 options[opt >> 3] |= (1 << (opt & 7));
1400 else
1401 options[opt >> 3] &= ~(1 << (opt & 7));
1402 }
1403 1389
1404 void set_privmode (unsigned bit, int set) NOTHROW 1390 void set_privmode (unsigned bit, int set) NOTHROW
1405 { 1391 {
1406 if (set) 1392 if (set)
1407 priv_modes |= bit; 1393 priv_modes |= bit;
1408 else 1394 else
1409 priv_modes &= ~bit; 1395 priv_modes &= ~bit;
1410 } 1396 }
1411 1397
1412 // modifies first argument(!) 1398 // modifies first argument(!)
1399 void tt_paste (char *data, unsigned int len) NOTHROW;
1413 void paste (char *data, unsigned int len) NOTHROW; 1400 void paste (char *data, unsigned int len) NOTHROW;
1414 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; 1401 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW;
1415 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; 1402 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW;
1416 void scr_kill_char (line_t &l, int col) const NOTHROW; 1403 void scr_kill_char (line_t &l, int col) const NOTHROW;
1417 int scr_scroll_text (int row1, int row2, int count) NOTHROW; 1404 int scr_scroll_text (int row1, int row2, int count) NOTHROW;
1476 void selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW; 1463 void selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW;
1477 void selection_property (Window win, Atom prop) NOTHROW; 1464 void selection_property (Window win, Atom prop) NOTHROW;
1478 void selection_request (Time tm, int selnum = Sel_Primary) NOTHROW; 1465 void selection_request (Time tm, int selnum = Sel_Primary) NOTHROW;
1479 int selection_request_other (Atom target, int selnum) NOTHROW; 1466 int selection_request_other (Atom target, int selnum) NOTHROW;
1480 void selection_clear (bool clipboard = false) NOTHROW; 1467 void selection_clear (bool clipboard = false) NOTHROW;
1481 void clipboard_copy (Time tm);
1482 void selection_make (Time tm); 1468 void selection_make (Time tm);
1483 bool selection_grab (Time tm, bool clipboard = false) NOTHROW; 1469 bool selection_grab (Time tm, bool clipboard = false) NOTHROW;
1484 void selection_start_colrow (int col, int row) NOTHROW; 1470 void selection_start_colrow (int col, int row) NOTHROW;
1485 void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW; 1471 void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW;
1486 void selection_extend_colrow (int32_t col, int32_t row, int button3, int buttonpress, int clickchange) NOTHROW; 1472 void selection_extend_colrow (int32_t col, int32_t row, int button3, int buttonpress, int clickchange) NOTHROW;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines