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.465 by sf-exg, Tue Jan 10 18:50:14 2012 UTC

125#endif 125#endif
126 126
127#ifndef EXIT_SUCCESS /* missing from <stdlib.h> */ 127#ifndef EXIT_SUCCESS /* missing from <stdlib.h> */
128# define EXIT_SUCCESS 0 /* exit function success */ 128# define EXIT_SUCCESS 0 /* exit function success */
129# define EXIT_FAILURE 1 /* exit function failure */ 129# define EXIT_FAILURE 1 /* exit function failure */
130#endif
131
132#ifndef PATH_MAX
133# define PATH_MAX 16384
134#endif 130#endif
135 131
136/****************************************************************************/ 132/****************************************************************************/
137 133
138// exception thrown on fatal (per-instance) errors 134// exception thrown on fatal (per-instance) errors
161 157
162const char * rxvt_basename (const char *str) NOTHROW; 158const char * rxvt_basename (const char *str) NOTHROW;
163void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW; 159void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW;
164void rxvt_log (const char *fmt,...) NOTHROW; 160void rxvt_log (const char *fmt,...) NOTHROW;
165void rxvt_warn (const char *fmt,...) NOTHROW; 161void rxvt_warn (const char *fmt,...) NOTHROW;
166void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN; 162void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) ecb_noreturn;
167void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; 163void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) ecb_noreturn;
168 164
169char * rxvt_strtrim (char *str) NOTHROW; 165char * rxvt_strtrim (char *str) NOTHROW;
170char ** rxvt_strsplit (char delim, const char *str) NOTHROW; 166char ** rxvt_strsplit (char delim, const char *str) NOTHROW;
171 167
172static inline void 168static inline void
308# define NSCREENS 0 304# define NSCREENS 0
309#else 305#else
310# define NSCREENS 1 306# define NSCREENS 1
311#endif 307#endif
312 308
313/* special (internal) prefix for font commands */
314#define FONT_CMD '#'
315#define FONT_DN "#-"
316#define FONT_UP "#+"
317
318/* flags for rxvt_scr_gotorc () */ 309/* flags for rxvt_term::scr_gotorc () */
319enum { 310enum {
320 C_RELATIVE = 1, /* col movement is relative */ 311 C_RELATIVE = 1, /* col movement is relative */
321 R_RELATIVE = 2, /* row movement is relative */ 312 R_RELATIVE = 2, /* row movement is relative */
322 RELATIVE = C_RELATIVE | R_RELATIVE, 313 RELATIVE = C_RELATIVE | R_RELATIVE,
323}; 314};
324 315
325/* modes for rxvt_scr_insdel_chars (), rxvt_scr_insdel_lines () */ 316/* modes for rxvt_term::scr_insdel_chars (), rxvt_term::scr_insdel_lines () */
326enum { 317enum {
327 INSERT = -1, /* don't change these values */ 318 INSERT = -1, /* don't change these values */
328 DELETE = +1, 319 DELETE = +1,
329 ERASE = +2, 320 ERASE = +2,
330}; 321};
331 322
332/* modes for rxvt_scr_page () - scroll page. used by scrollbar window */ 323/* modes for rxvt_term::scr_page () - scroll page. used by scrollbar window */
333enum page_dirn { 324enum page_dirn {
334 UP, 325 UP,
335 DN, 326 DN,
336 NO_DIR, 327 NO_DIR,
337}; 328};
338 329
339/* arguments for rxvt_scr_change_screen () */ 330/* arguments for rxvt_term::scr_change_screen () */
340enum { 331enum {
341 PRIMARY = 0, 332 PRIMARY = 0,
342 SECONDARY, 333 SECONDARY,
343}; 334};
344 335
386#define RS_baseattrMask (RS_Italic | RS_Bold | RS_Blink | RS_RVid | RS_Uline) 377#define RS_baseattrMask (RS_Italic | RS_Bold | RS_Blink | RS_RVid | RS_Uline)
387#define RS_attrMask (RS_baseattrMask | RS_fontMask) 378#define RS_attrMask (RS_baseattrMask | RS_fontMask)
388 379
389#define DEFAULT_RSTYLE (RS_None | (Color_fg << RS_fgShift) | (Color_bg << RS_bgShift)) 380#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)) 381#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 382
402enum { 383enum {
403 C0_NUL = 0x00, 384 C0_NUL = 0x00,
404 C0_SOH, C0_STX, C0_ETX, C0_EOT, C0_ENQ, C0_ACK, C0_BEL, 385 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 , 386 C0_BS , C0_HT , C0_LF , C0_VT , C0_FF , C0_CR , C0_SO , C0_SI ,
686 667
687#define GET_ATTR(x) (((x) & RS_attrMask)) 668#define GET_ATTR(x) (((x) & RS_attrMask))
688// return attributes defining the background, encoding doesn't matter 669// return attributes defining the background, encoding doesn't matter
689// depends on RS_fgShift > RS_bgShift 670// depends on RS_fgShift > RS_bgShift
690#define GET_BGATTR(x) \ 671#define GET_BGATTR(x) \
691 (expect_false ((x) & RS_RVid) \ 672 (ecb_unlikely ((x) & RS_RVid) \
692 ? (((x) & (RS_attrMask & ~RS_RVid)) \ 673 ? (((x) & (RS_attrMask & ~RS_RVid)) \
693 | (((x) & RS_fgMask) >> (RS_fgShift - RS_bgShift))) \ 674 | (((x) & RS_fgMask) >> (RS_fgShift - RS_bgShift))) \
694 : ((x) & (RS_attrMask | RS_bgMask))) 675 : ((x) & (RS_attrMask | RS_bgMask)))
695#define SET_FGCOLOR(x,fg) (((x) & ~RS_fgMask) | ((fg) << RS_fgShift)) 676#define SET_FGCOLOR(x,fg) (((x) & ~RS_fgMask) | ((fg) << RS_fgShift))
696#define SET_BGCOLOR(x,bg) (((x) & ~RS_bgMask) | ((bg) << RS_bgShift)) 677#define SET_BGCOLOR(x,bg) (((x) & ~RS_bgMask) | ((bg) << RS_bgShift))
889 * END······················= total_rows 870 * END······················= total_rows
890 */ 871 */
891 872
892struct TermWin_t 873struct TermWin_t
893{ 874{
875 int vt_width; /* actual window width [pixels] */
876 int vt_height; /* actual window height [pixels] */
894 int width; /* window width [pixels] */ 877 int width; /* window width [pixels] */
895 int height; /* window height [pixels] */ 878 int height; /* window height [pixels] */
896 int fwidth; /* font width [pixels] */ 879 int fwidth; /* font width [pixels] */
897 int fheight; /* font height [pixels] */ 880 int fheight; /* font height [pixels] */
898 int fbase; /* font ascent (baseline) [pixels] */ 881 int fbase; /* font ascent (baseline) [pixels] */
907 int saveLines; /* number of lines that fit in scrollback */ 890 int saveLines; /* number of lines that fit in scrollback */
908 int total_rows; /* total number of rows in this terminal */ 891 int total_rows; /* total number of rows in this terminal */
909 int term_start; /* term lines start here */ 892 int term_start; /* term lines start here */
910 int view_start; /* scrollback view starts here */ 893 int view_start; /* scrollback view starts here */
911 int top_row; /* topmost row index of scrollback */ 894 int top_row; /* topmost row index of scrollback */
912 Window parent[6]; /* parent identifiers - we're parent[0] */ 895 Window parent; /* parent identifier */
913 Window vt; /* vt100 window */ 896 Window vt; /* vt100 window */
914 GC gc; /* GC for drawing */ 897 GC gc; /* GC for drawing */
915 Pixmap pixmap;
916 rxvt_drawable *drawable; 898 rxvt_drawable *drawable;
917 rxvt_fontset *fontset[4]; 899 rxvt_fontset *fontset[4];
918}; 900};
919 901
920/* 902/*
1000 scrollBar_t scrollBar; 982 scrollBar_t scrollBar;
1001 uint8_t options[(Opt_count + 7) >> 3]; 983 uint8_t options[(Opt_count + 7) >> 3];
1002 XSizeHints szHint; 984 XSizeHints szHint;
1003 rxvt_color *pix_colors; 985 rxvt_color *pix_colors;
1004 Cursor TermWin_cursor; /* cursor for vt window */ 986 Cursor TermWin_cursor; /* cursor for vt window */
1005 line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf 987 line_t *row_buf; // all lines, scrollback + terminal, circular
1006 line_t *drawn_buf; // text on screen 988 line_t *drawn_buf; // text on screen
1007 line_t *swap_buf; // lines for swap buffer 989 line_t *swap_buf; // lines for swap buffer
1008 char *tabs; /* per location: 1 == tab-stop */ 990 char *tabs; /* per location: 1 == tab-stop */
1009 screen_t screen; 991 screen_t screen;
1010 screen_t swap; 992 screen_t swap;
1047 hidden_pointer:1, 1029 hidden_pointer:1,
1048#endif 1030#endif
1049 enc_utf8:1, /* whether locale uses utf-8 */ 1031 enc_utf8:1, /* whether locale uses utf-8 */
1050 seen_input:1, /* whether we have seen some program output yet */ 1032 seen_input:1, /* whether we have seen some program output yet */
1051 seen_resize:1, /* whether we had a resize event */ 1033 seen_resize:1, /* whether we had a resize event */
1034 init_done:1,
1052 parsed_geometry:1; 1035 parsed_geometry:1;
1053 1036
1054 unsigned char refresh_type, 1037 unsigned char refresh_type,
1055#ifdef META8_OPTION 1038#ifdef META8_OPTION
1056 meta_char, /* Alt-key prefix */ 1039 meta_char; /* Alt-key prefix */
1057#endif 1040#endif
1058 selection_wait,
1059 selection_type;
1060/* ---------- */ 1041/* ---------- */
1061 bool rvideo_state, rvideo_mode; 1042 bool rvideo_state, rvideo_mode;
1062#ifndef NO_BELL 1043#ifndef NO_BELL
1063 bool rvideo_bell; 1044 bool rvideo_bell;
1064#endif 1045#endif
1092 allowedxerror; 1073 allowedxerror;
1093/* ---------- */ 1074/* ---------- */
1094 unsigned int ModLevel3Mask, 1075 unsigned int ModLevel3Mask,
1095 ModMetaMask, 1076 ModMetaMask,
1096 ModNumLockMask; 1077 ModNumLockMask;
1097 int old_width, /* last used width in screen resize */
1098 old_height; /* last used height in screen resize */
1099 unsigned long priv_modes, 1078 unsigned long priv_modes,
1100 SavedModes; 1079 SavedModes;
1101/* ---------- */ 1080/* ---------- */
1102 Atom *xa; 1081 Atom *xa;
1103/* ---------- */ 1082/* ---------- */
1104 Time selection_time, 1083 Time selection_time,
1105 selection_request_time,
1106 clipboard_time; 1084 clipboard_time;
1085 rxvt_selection *selection_req;
1107 pid_t cmd_pid; /* process id of child */ 1086 pid_t cmd_pid; /* process id of child */
1108 char * incr_buf;
1109 size_t incr_buf_size, incr_buf_fill;
1110/* ---------- */ 1087/* ---------- */
1111 struct mouse_event MEvent; 1088 struct mouse_event MEvent;
1112 XComposeStatus compose; 1089 XComposeStatus compose;
1113 static struct termios def_tio; 1090 static struct termios def_tio;
1114 row_col_t oldcursor; 1091 row_col_t oldcursor;
1122 BG_NEEDS_TINT = 1 << 1, 1099 BG_NEEDS_TINT = 1 << 1,
1123 BG_NEEDS_BLUR = 1 << 2, 1100 BG_NEEDS_BLUR = 1 << 2,
1124 1101
1125 BG_EFFECTS_FLAGS = BG_NEEDS_TINT | BG_NEEDS_BLUR, 1102 BG_EFFECTS_FLAGS = BG_NEEDS_TINT | BG_NEEDS_BLUR,
1126 1103
1127 BG_PROP_SCALE = 1 << 3, 1104 BG_KEEP_ASPECT = 1 << 3,
1128 BG_ROOT_ALIGN = 1 << 4, 1105 BG_ROOT_ALIGN = 1 << 4,
1106 BG_TILE = 1 << 14,
1129 BG_GEOMETRY_FLAGS = BG_PROP_SCALE | BG_ROOT_ALIGN, 1107 BG_GEOMETRY_FLAGS = BG_KEEP_ASPECT | BG_ROOT_ALIGN | BG_TILE,
1130 1108
1131 BG_TINT_SET = 1 << 5, 1109 BG_TINT_SET = 1 << 5,
1132 BG_TINT_BITAND = 1 << 6, 1110 BG_TINT_BITAND = 1 << 6,
1133 BG_TINT_FLAGS = BG_NEEDS_TINT | BG_TINT_BITAND, 1111 BG_TINT_FLAGS = BG_NEEDS_TINT | BG_TINT_BITAND,
1134 1112
1181 void set_tint_shade_flags (); 1159 void set_tint_shade_flags ();
1182 bool bg_set_tint (rxvt_color &new_tint); 1160 bool bg_set_tint (rxvt_color &new_tint);
1183 bool bg_set_shade (const char *shade_str); 1161 bool bg_set_shade (const char *shade_str);
1184 bool bg_set_blur (const char *geom); 1162 bool bg_set_blur (const char *geom);
1185 1163
1186 bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height); 1164 bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height, int depth);
1187 bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height); 1165 bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height);
1166 void tint_ximage (Visual *visual, XImage *ximage);
1188 unsigned long make_transparency_pixmap (); 1167 unsigned long make_transparency_pixmap ();
1189# endif 1168# endif
1190 1169
1191 ev_tstamp bg_valid_since; 1170 ev_tstamp bg_valid_since;
1192 1171
1236 void scr_overlay_set (int x, int y, const wchar_t *s) NOTHROW; 1215 void scr_overlay_set (int x, int y, const wchar_t *s) NOTHROW;
1237#endif 1216#endif
1238 1217
1239 vector<void *> allocated; // free these memory blocks with free() 1218 vector<void *> allocated; // free these memory blocks with free()
1240 1219
1241 char env_windowid[21]; /* environmental variable WINDOWID */
1242 char env_colorfgbg[sizeof ("COLORFGBG=default;default;bg") + 1];
1243 char *env_display; /* environmental variable DISPLAY */
1244 char *env_term; /* environmental variable TERM */
1245
1246 char *locale; 1220 char *locale;
1247 char charsets[4]; 1221 char charsets[4];
1248 char *v_buffer; /* pointer to physical buffer */ 1222 char *v_buffer; /* pointer to physical buffer */
1249 unsigned int v_buflen; /* size of area to write */ 1223 unsigned int v_buflen; /* size of area to write */
1250 stringvec *argv, *envv; /* if != 0, will be freed at destroy time */ 1224 stringvec *argv, *envv; /* if != 0, will be freed at destroy time */
1303 void child_cb (ev::child &w, int revents); ev::child child_ev; 1277 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; 1278 void destroy_cb (ev::idle &w, int revents); ev::idle destroy_ev;
1305 void refresh_check (); 1279 void refresh_check ();
1306 void flush (); 1280 void flush ();
1307 void flush_cb (ev::timer &w, int revents); ev::timer flush_ev; 1281 void flush_cb (ev::timer &w, int revents); ev::timer flush_ev;
1282 void cmdbuf_reify ();
1283 void cmdbuf_append (const char *str, size_t count);
1308 bool pty_fill (); 1284 bool pty_fill ();
1309 void pty_cb (ev::io &w, int revents); ev::io pty_ev; 1285 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 1286
1312#ifdef CURSOR_BLINK 1287#ifdef CURSOR_BLINK
1313 void cursor_blink_cb (ev::timer &w, int revents); ev::timer cursor_blink_ev; 1288 void cursor_blink_cb (ev::timer &w, int revents); ev::timer cursor_blink_ev;
1314#endif 1289#endif
1315#ifdef TEXT_BLINK 1290#ifdef TEXT_BLINK
1336 void pointer_unblank (); 1311 void pointer_unblank ();
1337 1312
1338 void tt_printf (const char *fmt,...); 1313 void tt_printf (const char *fmt,...);
1339 void tt_write (const char *data, unsigned int len); 1314 void tt_write (const char *data, unsigned int len);
1340 void pty_write (); 1315 void pty_write ();
1341
1342 void init (stringvec *argv, stringvec *envv)
1343 {
1344 this->argv = argv;
1345 init (argv->size (), argv->begin (), envv);
1346 }
1347 1316
1348 void make_current () const // make this the "currently active" urxvt instance 1317 void make_current () const // make this the "currently active" urxvt instance
1349 { 1318 {
1350 SET_R (this); 1319 SET_R (this);
1351 set_environ (envv); 1320 set_environ (envv);
1363 void im_set_size (XRectangle &size); 1332 void im_set_size (XRectangle &size);
1364 void im_set_position (XPoint &pos) NOTHROW; 1333 void im_set_position (XPoint &pos) NOTHROW;
1365 void im_set_color (unsigned long &fg, unsigned long &bg); 1334 void im_set_color (unsigned long &fg, unsigned long &bg);
1366 void im_set_preedit_area (XRectangle &preedit_rect, XRectangle &status_rect, const XRectangle &needed_rect); 1335 void im_set_preedit_area (XRectangle &preedit_rect, XRectangle &status_rect, const XRectangle &needed_rect);
1367 1336
1368 bool IMisRunning (); 1337 bool im_is_running ();
1369 void IMSendSpot (); 1338 void im_send_spot ();
1370 bool IM_get_IC (const char *modifiers); 1339 bool im_get_ic (const char *modifiers);
1371 void IMSetPosition (); 1340 void im_set_position ();
1372#endif 1341#endif
1373 1342
1374 // command.C 1343 // command.C
1375 void key_press (XKeyEvent &ev); 1344 void key_press (XKeyEvent &ev);
1376 void key_release (XKeyEvent &ev); 1345 void key_release (XKeyEvent &ev);
1377 unsigned int cmd_write (const char *str, unsigned int count);
1378 1346
1379 wchar_t next_char () NOTHROW; 1347 wchar_t next_char () NOTHROW;
1380 wchar_t cmd_getc () THROW ((class out_of_input)); 1348 wchar_t cmd_getc () THROW ((class out_of_input));
1381 uint32_t next_octet () NOTHROW; 1349 uint32_t next_octet () NOTHROW;
1382 uint32_t cmd_get8 () THROW ((class out_of_input)); 1350 uint32_t cmd_get8 () THROW ((class out_of_input));
1409 void process_color_seq (int report, int color, const char *str, char resp); 1377 void process_color_seq (int report, int color, const char *str, char resp);
1410 void process_xterm_seq (int op, char *str, char resp); 1378 void process_xterm_seq (int op, char *str, char resp);
1411 int privcases (int mode, unsigned long bit); 1379 int privcases (int mode, unsigned long bit);
1412 void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg); 1380 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); 1381 void process_sgr_mode (unsigned int nargs, const int *arg);
1414 void process_graphics ();
1415 // init.C 1382 // init.C
1383 void init (stringvec *argv, stringvec *envv);
1384 void init (int argc, const char *const *argv, const char *const *envv);
1385 void init2 (int argc, const char *const *argv);
1416 void init_vars (); 1386 void init_vars ();
1417 const char **init_resources (int argc, const char *const *argv); 1387 const char **init_resources (int argc, const char *const *argv);
1418 void init (int argc, const char *const *argv, stringvec *envv);
1419 void init_env (); 1388 void init_env ();
1420 void set_locale (const char *locale); 1389 void set_locale (const char *locale);
1421 void init_xlocale (); 1390 void init_xlocale ();
1422 void init_command (const char *const *argv); 1391 void init_command (const char *const *argv);
1423 void run_command (const char *const *argv); 1392 void run_command (const char *const *argv);
1441 void set_mbstring_property (Atom prop, const char *str, int len = -1); 1410 void set_mbstring_property (Atom prop, const char *str, int len = -1);
1442 void set_utf8_property (Atom prop, const char *str, int len = -1); 1411 void set_utf8_property (Atom prop, const char *str, int len = -1);
1443 void set_title (const char *str); 1412 void set_title (const char *str);
1444 void set_icon_name (const char *str); 1413 void set_icon_name (const char *str);
1445 void set_window_color (int idx, const char *color); 1414 void set_window_color (int idx, const char *color);
1446 void set_colorfgbg (); 1415 char *get_colorfgbg ();
1447 bool set_color (rxvt_color &color, const char *name); 1416 bool set_color (rxvt_color &color, const char *name);
1448 void alias_color (int dst, int src); 1417 void alias_color (int dst, int src);
1449 void set_widthheight (unsigned int newwidth, unsigned int newheight); 1418 void set_widthheight (unsigned int newwidth, unsigned int newheight);
1450 void get_window_origin (int &x, int &y); 1419 void get_window_origin (int &x, int &y);
1451 Pixmap get_pixmap_property (Atom property); 1420 Pixmap get_pixmap_property (Atom property);
1486#ifndef NO_BRIGHTCOLOR 1455#ifndef NO_BRIGHTCOLOR
1487 if (r & RS_Bold 1456 if (r & RS_Bold
1488# if ENABLE_STYLES 1457# if ENABLE_STYLES
1489 && option (Opt_intensityStyles) 1458 && option (Opt_intensityStyles)
1490# endif 1459# endif
1491 && IN_RANGE_INC (base, minCOLOR, minBrightCOLOR)) 1460 && IN_RANGE_EXC (base, minCOLOR, minBrightCOLOR))
1492 base += minBrightCOLOR - minCOLOR; 1461 base += minBrightCOLOR - minCOLOR;
1493#endif 1462#endif
1494 return base; 1463 return base;
1495 } 1464 }
1496 1465
1500#ifndef NO_BRIGHTCOLOR 1469#ifndef NO_BRIGHTCOLOR
1501 if (r & RS_Blink 1470 if (r & RS_Blink
1502# if ENABLE_STYLES 1471# if ENABLE_STYLES
1503 && option (Opt_intensityStyles) 1472 && option (Opt_intensityStyles)
1504# endif 1473# endif
1505 && IN_RANGE_INC (base, minCOLOR, minBrightCOLOR)) 1474 && IN_RANGE_EXC (base, minCOLOR, minBrightCOLOR))
1506 base += minBrightCOLOR - minCOLOR; 1475 base += minBrightCOLOR - minCOLOR;
1507#endif 1476#endif
1508 return base; 1477 return base;
1509 } 1478 }
1510 1479
1512 { 1481 {
1513 return options[opt >> 3] & (1 << (opt & 7)); 1482 return options[opt >> 3] & (1 << (opt & 7));
1514 } 1483 }
1515 1484
1516 void set_option (uint8_t opt, bool set = true) NOTHROW; 1485 void set_option (uint8_t opt, bool set = true) NOTHROW;
1517
1518 void set_privmode (unsigned bit, int set) NOTHROW
1519 {
1520 if (set)
1521 priv_modes |= bit;
1522 else
1523 priv_modes &= ~bit;
1524 }
1525 1486
1526 // modifies first argument(!) 1487 // modifies first argument(!)
1527 void tt_paste (char *data, unsigned int len) NOTHROW; 1488 void tt_paste (char *data, unsigned int len) NOTHROW;
1528 void paste (char *data, unsigned int len) NOTHROW; 1489 void paste (char *data, unsigned int len) NOTHROW;
1529 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; 1490 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW;
1586 void scr_xor_span (int beg_row, int beg_col, int end_row, int end_col, rend_t rstyle) NOTHROW; 1547 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; 1548 void scr_reverse_selection () NOTHROW;
1588 void scr_dump (int fd) NOTHROW; 1549 void scr_dump (int fd) NOTHROW;
1589 1550
1590 void selection_check (int check_more) NOTHROW; 1551 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; 1552 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; 1553 void selection_clear (bool clipboard = false) NOTHROW;
1596 void selection_make (Time tm); 1554 void selection_make (Time tm);
1597 bool selection_grab (Time tm, bool clipboard = false) NOTHROW; 1555 bool selection_grab (Time tm, bool clipboard = false) NOTHROW;
1598 void selection_start_colrow (int col, int row) NOTHROW; 1556 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; 1557 void selection_delimit_word (enum page_dirn dirn, const row_col_t *mark, row_col_t *ret) NOTHROW;
1603 void selection_click (int clicks, int x, int y) NOTHROW; 1561 void selection_click (int clicks, int x, int y) NOTHROW;
1604 void selection_extend (int x, int y, int flag) NOTHROW; 1562 void selection_extend (int x, int y, int flag) NOTHROW;
1605 void selection_rotate (int x, int y) NOTHROW; 1563 void selection_rotate (int x, int y) NOTHROW;
1606 1564
1607 // xdefaults.C 1565 // xdefaults.C
1608 void get_options (int argc, const char *const *argv); 1566 const char **get_options (int argc, const char *const *argv);
1609 int parse_keysym (const char *str, const char *arg); 1567 int parse_keysym (const char *str, const char *arg);
1610 const char *x_resource (const char *name); 1568 const char *x_resource (const char *name);
1611 void extract_resources (); 1569 void extract_resources ();
1570 void extract_keysym_resources ();
1612}; 1571};
1613 1572
1614#endif /* _RXVT_H_ */ 1573#endif /* _RXVT_H_ */
1615 1574

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines