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.358 by ayin, Fri Feb 15 10:56:29 2008 UTC vs.
Revision 1.370 by root, Tue Nov 4 14:25:10 2008 UTC

419 URxvt_boldItalicFont = 713, 419 URxvt_boldItalicFont = 713,
420 420
421 URxvt_view_up = 720, 421 URxvt_view_up = 720,
422 URxvt_view_down = 721, 422 URxvt_view_down = 721,
423 423
424 URxvt_perl = 777, 424 URxvt_perl = 777, // for use by perl extensions, starts with "extension-name;"
425}; 425};
426 426
427/* Words starting with `Color_' are colours. Others are counts */ 427/* Words starting with `Color_' are colours. Others are counts */
428/* 428/*
429 * The PixColor and rendition colour usage should probably be decoupled 429 * The PixColor and rendition colour usage should probably be decoupled
550 550
551// do not change these constants lightly, there are many interdependencies 551// do not change these constants lightly, there are many interdependencies
552#define IMBUFSIZ 128 // input modifier buffer sizes 552#define IMBUFSIZ 128 // input modifier buffer sizes
553#define KBUFSZ 512 // size of keyboard mapping buffer 553#define KBUFSZ 512 // size of keyboard mapping buffer
554#define CBUFSIZ 2048 // size of command buffer 554#define CBUFSIZ 2048 // size of command buffer
555#define CBUFCNT 8 // never call pty_fill/cmd_parse more than this often in a row
555#define UBUFSIZ 2048 // character buffer 556#define UBUFSIZ 2048 // character buffer
556 557
557#if ENABLE_FRILLS 558#if ENABLE_FRILLS
558# include <X11/Xmd.h> 559# include <X11/Xmd.h>
559typedef struct _mwmhints { 560typedef struct _mwmhints {
801 * +------------+·display·+·= term_start 802 * +------------+·display·+·= term_start
802 * | terminal | display | 803 * | terminal | display |
803 * | terminal +---------+ 804 * | terminal +---------+
804 * | terminal | 805 * | terminal |
805 * | terminal | 806 * | terminal |
806 * +------------+···········= term_stat + nrow - 1 807 * +------------+···········= term_start + nrow - 1
807 * | 808 * |
808 * | 809 * |
809 * END······················= total_rows 810 * END······················= total_rows
810 */ 811 */
811 812
847 * clicks: 1, 2 or 3 clicks - 4 indicates a special condition of 1 where 848 * clicks: 1, 2 or 3 clicks - 4 indicates a special condition of 1 where
848 * nothing is selected 849 * nothing is selected
849 * beg: row/column of beginning of selection : never past mark 850 * beg: row/column of beginning of selection : never past mark
850 * mark: row/column of initial click : never past end 851 * mark: row/column of initial click : never past end
851 * end: row/column of one character past end of selection 852 * end: row/column of one character past end of selection
852 * * Note: -nsaved <= beg.row <= mark.row <= end.row < nrow 853 * * Note: top_row <= beg.row <= mark.row <= end.row < nrow
853 * * Note: col == -1 ==> we're left of screen 854 * * Note: col == -1 ==> we're left of screen
854 * 855 *
855 */ 856 */
856typedef struct { 857typedef struct {
857 row_col_t cur; /* cursor position on the screen */ 858 row_col_t cur; /* cursor position on the screen */
943 944
944 unsigned char want_refresh:1, 945 unsigned char want_refresh:1,
945 current_screen:1, /* primary or secondary */ 946 current_screen:1, /* primary or secondary */
946 num_scr_allow:1, 947 num_scr_allow:1,
947 bypass_keystate:1, 948 bypass_keystate:1,
949#ifdef ENABLE_FRILLS
950 urgency_hint:1,
951#endif
948#ifdef CURSOR_BLINK 952#ifdef CURSOR_BLINK
949 hidden_cursor:1, 953 hidden_cursor:1,
950#endif 954#endif
951#ifdef TEXT_BLINK 955#ifdef TEXT_BLINK
952 hidden_text:1, 956 hidden_text:1,
990 mouse_slip_wheel_speed, 994 mouse_slip_wheel_speed,
991#endif 995#endif
992 refresh_count, 996 refresh_count,
993 window_vt_x, 997 window_vt_x,
994 window_vt_y, 998 window_vt_y,
995 window_sb_x,
996 mouse_row, 999 mouse_row,
997 mouse_col, 1000 mouse_col,
998# ifdef POINTER_BLANK 1001# ifdef POINTER_BLANK
999 pointerBlankDelay, 1002 pointerBlankDelay,
1000# endif 1003# endif
1008 unsigned long priv_modes, 1011 unsigned long priv_modes,
1009 SavedModes; 1012 SavedModes;
1010/* ---------- */ 1013/* ---------- */
1011 Atom *xa; 1014 Atom *xa;
1012/* ---------- */ 1015/* ---------- */
1013#ifdef RXVT_SCROLLBAR
1014 GC scrollbarGC,
1015 topShadowGC,
1016 botShadowGC;
1017#endif
1018#ifdef XTERM_SCROLLBAR
1019 GC xscrollbarGC,
1020 ShadowGC;
1021#endif
1022#ifdef PLAIN_SCROLLBAR
1023 GC pscrollbarGC;
1024#endif
1025#ifdef NEXT_SCROLLBAR
1026 GC blackGC,
1027 whiteGC,
1028 grayGC,
1029 darkGC,
1030 stippleGC;
1031 Pixmap dimple,
1032 upArrow,
1033 downArrow,
1034 upArrowHi,
1035 downArrowHi;
1036#endif
1037/* ---------- */
1038 Time selection_time, 1016 Time selection_time,
1039 selection_request_time; 1017 selection_request_time;
1040 pid_t cmd_pid; /* process id of child */ 1018 pid_t cmd_pid; /* process id of child */
1041 char * incr_buf; 1019 char * incr_buf;
1042 size_t incr_buf_size, incr_buf_fill; 1020 size_t incr_buf_size, incr_buf_fill;
1049 bgPixmap_t bgPixmap; 1027 bgPixmap_t bgPixmap;
1050#endif 1028#endif
1051#ifdef HAVE_AFTERIMAGE 1029#ifdef HAVE_AFTERIMAGE
1052 ASVisual *asv; 1030 ASVisual *asv;
1053 ASImageManager *asimman; 1031 ASImageManager *asimman;
1032
1033 void init_asv ()
1034 {
1035 if (!asv)
1036 asv = create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL);
1037 }
1054#endif 1038#endif
1055 1039
1056#if ENABLE_OVERLAY 1040#if ENABLE_OVERLAY
1057 int ov_x, ov_y, ov_w, ov_h; // overlay dimensions 1041 int ov_x, ov_y, ov_w, ov_h; // overlay dimensions
1058 text_t **ov_text; 1042 text_t **ov_text;
1215 wchar_t next_char () NOTHROW; 1199 wchar_t next_char () NOTHROW;
1216 wchar_t cmd_getc () THROW ((class out_of_input)); 1200 wchar_t cmd_getc () THROW ((class out_of_input));
1217 uint32_t next_octet () NOTHROW; 1201 uint32_t next_octet () NOTHROW;
1218 uint32_t cmd_get8 () THROW ((class out_of_input)); 1202 uint32_t cmd_get8 () THROW ((class out_of_input));
1219 1203
1220 bool cmd_parse (); 1204 void cmd_parse ();
1221 void mouse_report (XButtonEvent &ev); 1205 void mouse_report (XButtonEvent &ev);
1222 void button_press (XButtonEvent &ev); 1206 void button_press (XButtonEvent &ev);
1223 void button_release (XButtonEvent &ev); 1207 void button_release (XButtonEvent &ev);
1224 void focus_in (); 1208 void focus_in ();
1225 void focus_out (); 1209 void focus_out ();
1210 void set_urgency (bool enable);
1226 void update_fade_color (unsigned int idx); 1211 void update_fade_color (unsigned int idx);
1227#ifdef PRINTPIPE 1212#ifdef PRINTPIPE
1228 FILE *popen_printer (); 1213 FILE *popen_printer ();
1229 int pclose_printer (FILE *stream); 1214 int pclose_printer (FILE *stream);
1230#endif 1215#endif
1253 void init_command (const char *const *argv); 1238 void init_command (const char *const *argv);
1254 void run_command (const char *const *argv); 1239 void run_command (const char *const *argv);
1255 int run_child (const char *const *argv); 1240 int run_child (const char *const *argv);
1256 void color_aliases (int idx); 1241 void color_aliases (int idx);
1257 void create_windows (int argc, const char *const *argv); 1242 void create_windows (int argc, const char *const *argv);
1258 void Get_Colours (); 1243 void get_colours ();
1259 void get_ourmods (); 1244 void get_ourmods ();
1260 // main.C 1245 // main.C
1261 void tt_winch (); 1246 void tt_winch ();
1262 rxvt_term (); 1247 rxvt_term ();
1263 ~rxvt_term (); 1248 ~rxvt_term ();
1356 options[opt >> 3] |= (1 << (opt & 7)); 1341 options[opt >> 3] |= (1 << (opt & 7));
1357 else 1342 else
1358 options[opt >> 3] &= ~(1 << (opt & 7)); 1343 options[opt >> 3] &= ~(1 << (opt & 7));
1359 } 1344 }
1360 1345
1361 void PrivMode (int set, unsigned bit) NOTHROW 1346 void set_privmode (unsigned bit, int set) NOTHROW
1362 { 1347 {
1363 if (set) 1348 if (set)
1364 priv_modes |= bit; 1349 priv_modes |= bit;
1365 else 1350 else
1366 priv_modes &= ~bit; 1351 priv_modes &= ~bit;
1368 1353
1369 // modifies first argument(!) 1354 // modifies first argument(!)
1370 void paste (char *data, unsigned int len) NOTHROW; 1355 void paste (char *data, unsigned int len) NOTHROW;
1371 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; 1356 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW;
1372 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; 1357 void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW;
1358 void scr_kill_char (line_t &l, int col) const NOTHROW;
1373 int scr_scroll_text (int row1, int row2, int count) NOTHROW; 1359 int scr_scroll_text (int row1, int row2, int count) NOTHROW;
1374 void scr_reset (); 1360 void scr_reset ();
1375 void scr_release () NOTHROW; 1361 void scr_release () NOTHROW;
1376 void scr_clear (bool really = false) NOTHROW; 1362 void scr_clear (bool really = false) NOTHROW;
1377 void scr_refresh () NOTHROW; 1363 void scr_refresh () NOTHROW;
1442 void selection_send (const XSelectionRequestEvent &rq) NOTHROW; 1428 void selection_send (const XSelectionRequestEvent &rq) NOTHROW;
1443 void selection_click (int clicks, int x, int y) NOTHROW; 1429 void selection_click (int clicks, int x, int y) NOTHROW;
1444 void selection_extend (int x, int y, int flag) NOTHROW; 1430 void selection_extend (int x, int y, int flag) NOTHROW;
1445 void selection_rotate (int x, int y) NOTHROW; 1431 void selection_rotate (int x, int y) NOTHROW;
1446 1432
1447#if defined(NEXT_SCROLLBAR)
1448 // scrollbar-next.C
1449 Pixmap renderPixmap (const char *const *data, int width, int height);
1450 void init_scrollbar_stuff ();
1451 void drawBevel (Drawable d, int x1, int y1, int w, int h);
1452 int scrollbar_show_next (int update, int last_top, int last_bot, int scrollbar_len);
1453#endif
1454
1455#if defined(RXVT_SCROLLBAR)
1456 // scrollbar-rxvt.C
1457 int scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len);
1458#endif
1459
1460#if defined(XTERM_SCROLLBAR)
1461 // scrollbar-xterm.C
1462 int scrollbar_show_xterm (int update, int last_top, int last_bot, int scrollbar_len);
1463#endif
1464
1465#if defined(PLAIN_SCROLLBAR)
1466 // scrollbar-plain.C
1467 int scrollbar_show_plain (int update, int last_top, int last_bot, int scrollbar_len);
1468#endif
1469
1470 // scrollbar.C
1471 void resize_scrollbar ();
1472 int scrollbar_mapping (int map);
1473 int scrollbar_show (int update);
1474
1475 // xdefaults.C 1433 // xdefaults.C
1476 void get_options (int argc, const char *const *argv); 1434 void get_options (int argc, const char *const *argv);
1477 int parse_keysym (const char *str, const char *arg); 1435 int parse_keysym (const char *str, const char *arg);
1478 const char *x_resource (const char *name); 1436 const char *x_resource (const char *name);
1479 void extract_resources (); 1437 void extract_resources ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines