… | |
… | |
97 | /* |
97 | /* |
98 | ***************************************************************************** |
98 | ***************************************************************************** |
99 | * SYSTEM HACKS |
99 | * SYSTEM HACKS |
100 | ***************************************************************************** |
100 | ***************************************************************************** |
101 | */ |
101 | */ |
102 | /* Consistent defines - please report on the necessity |
|
|
103 | * @ Unixware: defines (__svr4__) |
|
|
104 | */ |
|
|
105 | #if defined (SVR4) && !defined (__svr4__) |
|
|
106 | # define __svr4__ 1 |
|
|
107 | #endif |
|
|
108 | #if defined (sun) && !defined (__sun__) |
|
|
109 | # define __sun__ 1 |
|
|
110 | #endif |
|
|
111 | |
102 | |
112 | #ifndef HAVE_XPOINTER |
103 | #ifndef HAVE_XPOINTER |
113 | typedef char *XPointer; |
104 | typedef char *XPointer; |
114 | #endif |
105 | #endif |
115 | |
106 | |
… | |
… | |
428 | URxvt_boldItalicFont = 713, |
419 | URxvt_boldItalicFont = 713, |
429 | |
420 | |
430 | URxvt_view_up = 720, |
421 | URxvt_view_up = 720, |
431 | URxvt_view_down = 721, |
422 | URxvt_view_down = 721, |
432 | |
423 | |
433 | URxvt_perl = 777, |
424 | URxvt_perl = 777, // for use by perl extensions, starts with "extension-name;" |
434 | }; |
425 | }; |
435 | |
426 | |
436 | /* Words starting with `Color_' are colours. Others are counts */ |
427 | /* Words starting with `Color_' are colours. Others are counts */ |
437 | /* |
428 | /* |
438 | * The PixColor and rendition colour usage should probably be decoupled |
429 | * The PixColor and rendition colour usage should probably be decoupled |
… | |
… | |
810 | * +------------+·display·+·= term_start |
801 | * +------------+·display·+·= term_start |
811 | * | terminal | display | |
802 | * | terminal | display | |
812 | * | terminal +---------+ |
803 | * | terminal +---------+ |
813 | * | terminal | |
804 | * | terminal | |
814 | * | terminal | |
805 | * | terminal | |
815 | * +------------+···········= term_stat + nrow - 1 |
806 | * +------------+···········= term_start + nrow - 1 |
816 | * | |
807 | * | |
817 | * | |
808 | * | |
818 | * END······················= total_rows |
809 | * END······················= total_rows |
819 | */ |
810 | */ |
820 | |
811 | |
… | |
… | |
856 | * clicks: 1, 2 or 3 clicks - 4 indicates a special condition of 1 where |
847 | * clicks: 1, 2 or 3 clicks - 4 indicates a special condition of 1 where |
857 | * nothing is selected |
848 | * nothing is selected |
858 | * beg: row/column of beginning of selection : never past mark |
849 | * beg: row/column of beginning of selection : never past mark |
859 | * mark: row/column of initial click : never past end |
850 | * mark: row/column of initial click : never past end |
860 | * end: row/column of one character past end of selection |
851 | * end: row/column of one character past end of selection |
861 | * * Note: -nsaved <= beg.row <= mark.row <= end.row < nrow |
852 | * * Note: top_row <= beg.row <= mark.row <= end.row < nrow |
862 | * * Note: col == -1 ==> we're left of screen |
853 | * * Note: col == -1 ==> we're left of screen |
863 | * |
854 | * |
864 | */ |
855 | */ |
865 | typedef struct { |
856 | typedef struct { |
866 | row_col_t cur; /* cursor position on the screen */ |
857 | row_col_t cur; /* cursor position on the screen */ |
… | |
… | |
999 | mouse_slip_wheel_speed, |
990 | mouse_slip_wheel_speed, |
1000 | #endif |
991 | #endif |
1001 | refresh_count, |
992 | refresh_count, |
1002 | window_vt_x, |
993 | window_vt_x, |
1003 | window_vt_y, |
994 | window_vt_y, |
1004 | window_sb_x, |
|
|
1005 | mouse_row, |
995 | mouse_row, |
1006 | mouse_col, |
996 | mouse_col, |
1007 | # ifdef POINTER_BLANK |
997 | # ifdef POINTER_BLANK |
1008 | pointerBlankDelay, |
998 | pointerBlankDelay, |
1009 | # endif |
999 | # endif |
… | |
… | |
1017 | unsigned long priv_modes, |
1007 | unsigned long priv_modes, |
1018 | SavedModes; |
1008 | SavedModes; |
1019 | /* ---------- */ |
1009 | /* ---------- */ |
1020 | Atom *xa; |
1010 | Atom *xa; |
1021 | /* ---------- */ |
1011 | /* ---------- */ |
1022 | #ifdef RXVT_SCROLLBAR |
|
|
1023 | GC scrollbarGC, |
|
|
1024 | topShadowGC, |
|
|
1025 | botShadowGC; |
|
|
1026 | #endif |
|
|
1027 | #ifdef XTERM_SCROLLBAR |
|
|
1028 | GC xscrollbarGC, |
|
|
1029 | ShadowGC; |
|
|
1030 | #endif |
|
|
1031 | #ifdef PLAIN_SCROLLBAR |
|
|
1032 | GC pscrollbarGC; |
|
|
1033 | #endif |
|
|
1034 | #ifdef NEXT_SCROLLBAR |
|
|
1035 | GC blackGC, |
|
|
1036 | whiteGC, |
|
|
1037 | grayGC, |
|
|
1038 | darkGC, |
|
|
1039 | stippleGC; |
|
|
1040 | Pixmap dimple, |
|
|
1041 | upArrow, |
|
|
1042 | downArrow, |
|
|
1043 | upArrowHi, |
|
|
1044 | downArrowHi; |
|
|
1045 | #endif |
|
|
1046 | /* ---------- */ |
|
|
1047 | Time selection_time, |
1012 | Time selection_time, |
1048 | selection_request_time; |
1013 | selection_request_time; |
1049 | pid_t cmd_pid; /* process id of child */ |
1014 | pid_t cmd_pid; /* process id of child */ |
1050 | char * incr_buf; |
1015 | char * incr_buf; |
1051 | size_t incr_buf_size, incr_buf_fill; |
1016 | size_t incr_buf_size, incr_buf_fill; |
… | |
… | |
1111 | |
1076 | |
1112 | #if ENABLE_FRILLS || ISO_14755 |
1077 | #if ENABLE_FRILLS || ISO_14755 |
1113 | // ISO 14755 entry support |
1078 | // ISO 14755 entry support |
1114 | unicode_t iso14755buf; |
1079 | unicode_t iso14755buf; |
1115 | void commit_iso14755 (); |
1080 | void commit_iso14755 (); |
1116 | int hex_keyval (XKeyEvent &ev); |
|
|
1117 | # if ISO_14755 |
1081 | # if ISO_14755 |
1118 | void iso14755_51 (unicode_t ch, rend_t r = DEFAULT_RSTYLE, int x = 0, int y = -1); |
1082 | void iso14755_51 (unicode_t ch, rend_t r = DEFAULT_RSTYLE, int x = 0, int y = -1); |
1119 | void iso14755_54 (int x, int y); |
1083 | void iso14755_54 (int x, int y); |
1120 | # endif |
1084 | # endif |
1121 | #endif |
1085 | #endif |
… | |
… | |
1263 | void init_command (const char *const *argv); |
1227 | void init_command (const char *const *argv); |
1264 | void run_command (const char *const *argv); |
1228 | void run_command (const char *const *argv); |
1265 | int run_child (const char *const *argv); |
1229 | int run_child (const char *const *argv); |
1266 | void color_aliases (int idx); |
1230 | void color_aliases (int idx); |
1267 | void create_windows (int argc, const char *const *argv); |
1231 | void create_windows (int argc, const char *const *argv); |
1268 | void Get_Colours (); |
1232 | void get_colours (); |
1269 | void get_ourmods (); |
1233 | void get_ourmods (); |
1270 | // main.C |
1234 | // main.C |
1271 | void tt_winch (); |
1235 | void tt_winch (); |
1272 | rxvt_term (); |
1236 | rxvt_term (); |
1273 | ~rxvt_term (); |
1237 | ~rxvt_term (); |
… | |
… | |
1366 | options[opt >> 3] |= (1 << (opt & 7)); |
1330 | options[opt >> 3] |= (1 << (opt & 7)); |
1367 | else |
1331 | else |
1368 | options[opt >> 3] &= ~(1 << (opt & 7)); |
1332 | options[opt >> 3] &= ~(1 << (opt & 7)); |
1369 | } |
1333 | } |
1370 | |
1334 | |
1371 | void PrivMode (int set, unsigned bit) NOTHROW |
1335 | void set_privmode (unsigned bit, int set) NOTHROW |
1372 | { |
1336 | { |
1373 | if (set) |
1337 | if (set) |
1374 | priv_modes |= bit; |
1338 | priv_modes |= bit; |
1375 | else |
1339 | else |
1376 | priv_modes &= ~bit; |
1340 | priv_modes &= ~bit; |
… | |
… | |
1452 | void selection_send (const XSelectionRequestEvent &rq) NOTHROW; |
1416 | void selection_send (const XSelectionRequestEvent &rq) NOTHROW; |
1453 | void selection_click (int clicks, int x, int y) NOTHROW; |
1417 | void selection_click (int clicks, int x, int y) NOTHROW; |
1454 | void selection_extend (int x, int y, int flag) NOTHROW; |
1418 | void selection_extend (int x, int y, int flag) NOTHROW; |
1455 | void selection_rotate (int x, int y) NOTHROW; |
1419 | void selection_rotate (int x, int y) NOTHROW; |
1456 | |
1420 | |
1457 | #if defined(NEXT_SCROLLBAR) |
|
|
1458 | // scrollbar-next.C |
|
|
1459 | Pixmap renderPixmap (const char *const *data, int width, int height); |
|
|
1460 | void init_scrollbar_stuff (); |
|
|
1461 | void drawBevel (Drawable d, int x1, int y1, int w, int h); |
|
|
1462 | int scrollbar_show_next (int update, int last_top, int last_bot, int scrollbar_len); |
|
|
1463 | #endif |
|
|
1464 | |
|
|
1465 | #if defined(RXVT_SCROLLBAR) |
|
|
1466 | // scrollbar-rxvt.C |
|
|
1467 | int scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len); |
|
|
1468 | #endif |
|
|
1469 | |
|
|
1470 | #if defined(XTERM_SCROLLBAR) |
|
|
1471 | // scrollbar-xterm.C |
|
|
1472 | int scrollbar_show_xterm (int update, int last_top, int last_bot, int scrollbar_len); |
|
|
1473 | #endif |
|
|
1474 | |
|
|
1475 | #if defined(PLAIN_SCROLLBAR) |
|
|
1476 | // scrollbar-plain.C |
|
|
1477 | int scrollbar_show_plain (int update, int last_top, int last_bot, int scrollbar_len); |
|
|
1478 | #endif |
|
|
1479 | |
|
|
1480 | // scrollbar.C |
|
|
1481 | void resize_scrollbar (); |
|
|
1482 | int scrollbar_mapping (int map); |
|
|
1483 | int scrollbar_show (int update); |
|
|
1484 | void setup_scrollbar (const char *scrollalign, const char *scrollstyle, const char *thickness); |
|
|
1485 | |
|
|
1486 | // xdefaults.C |
1421 | // xdefaults.C |
1487 | void get_options (int argc, const char *const *argv); |
1422 | void get_options (int argc, const char *const *argv); |
1488 | int parse_keysym (const char *str, const char *arg); |
1423 | int parse_keysym (const char *str, const char *arg); |
1489 | const char *x_resource (const char *name); |
1424 | const char *x_resource (const char *name); |
1490 | void extract_resources (); |
1425 | void extract_resources (); |