… | |
… | |
801 | * +------------+·display·+·= term_start |
801 | * +------------+·display·+·= term_start |
802 | * | terminal | display | |
802 | * | terminal | display | |
803 | * | terminal +---------+ |
803 | * | terminal +---------+ |
804 | * | terminal | |
804 | * | terminal | |
805 | * | terminal | |
805 | * | terminal | |
806 | * +------------+···········= term_stat + nrow - 1 |
806 | * +------------+···········= term_start + nrow - 1 |
807 | * | |
807 | * | |
808 | * | |
808 | * | |
809 | * END······················= total_rows |
809 | * END······················= total_rows |
810 | */ |
810 | */ |
811 | |
811 | |
… | |
… | |
847 | * 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 |
848 | * nothing is selected |
848 | * nothing is selected |
849 | * beg: row/column of beginning of selection : never past mark |
849 | * beg: row/column of beginning of selection : never past mark |
850 | * mark: row/column of initial click : never past end |
850 | * mark: row/column of initial click : never past end |
851 | * end: row/column of one character past end of selection |
851 | * end: row/column of one character past end of selection |
852 | * * Note: -nsaved <= beg.row <= mark.row <= end.row < nrow |
852 | * * Note: top_row <= beg.row <= mark.row <= end.row < nrow |
853 | * * Note: col == -1 ==> we're left of screen |
853 | * * Note: col == -1 ==> we're left of screen |
854 | * |
854 | * |
855 | */ |
855 | */ |
856 | typedef struct { |
856 | typedef struct { |
857 | row_col_t cur; /* cursor position on the screen */ |
857 | row_col_t cur; /* cursor position on the screen */ |
… | |
… | |
1006 | old_height; /* last used height in screen resize */ |
1006 | old_height; /* last used height in screen resize */ |
1007 | unsigned long priv_modes, |
1007 | unsigned long priv_modes, |
1008 | SavedModes; |
1008 | SavedModes; |
1009 | /* ---------- */ |
1009 | /* ---------- */ |
1010 | Atom *xa; |
1010 | Atom *xa; |
1011 | /* ---------- */ |
|
|
1012 | #ifdef RXVT_SCROLLBAR |
|
|
1013 | GC scrollbarGC, |
|
|
1014 | topShadowGC, |
|
|
1015 | botShadowGC; |
|
|
1016 | #endif |
|
|
1017 | #ifdef XTERM_SCROLLBAR |
|
|
1018 | GC xscrollbarGC, |
|
|
1019 | ShadowGC; |
|
|
1020 | #endif |
|
|
1021 | #ifdef PLAIN_SCROLLBAR |
|
|
1022 | GC pscrollbarGC; |
|
|
1023 | #endif |
|
|
1024 | #ifdef NEXT_SCROLLBAR |
|
|
1025 | GC blackGC, |
|
|
1026 | whiteGC, |
|
|
1027 | grayGC, |
|
|
1028 | darkGC, |
|
|
1029 | stippleGC; |
|
|
1030 | Pixmap dimple, |
|
|
1031 | upArrow, |
|
|
1032 | downArrow, |
|
|
1033 | upArrowHi, |
|
|
1034 | downArrowHi; |
|
|
1035 | #endif |
|
|
1036 | /* ---------- */ |
1011 | /* ---------- */ |
1037 | Time selection_time, |
1012 | Time selection_time, |
1038 | selection_request_time; |
1013 | selection_request_time; |
1039 | pid_t cmd_pid; /* process id of child */ |
1014 | pid_t cmd_pid; /* process id of child */ |
1040 | char * incr_buf; |
1015 | char * incr_buf; |
… | |
… | |
1252 | void init_command (const char *const *argv); |
1227 | void init_command (const char *const *argv); |
1253 | void run_command (const char *const *argv); |
1228 | void run_command (const char *const *argv); |
1254 | int run_child (const char *const *argv); |
1229 | int run_child (const char *const *argv); |
1255 | void color_aliases (int idx); |
1230 | void color_aliases (int idx); |
1256 | void create_windows (int argc, const char *const *argv); |
1231 | void create_windows (int argc, const char *const *argv); |
1257 | void Get_Colours (); |
1232 | void get_colours (); |
1258 | void get_ourmods (); |
1233 | void get_ourmods (); |
1259 | // main.C |
1234 | // main.C |
1260 | void tt_winch (); |
1235 | void tt_winch (); |
1261 | rxvt_term (); |
1236 | rxvt_term (); |
1262 | ~rxvt_term (); |
1237 | ~rxvt_term (); |
… | |
… | |
1441 | void selection_send (const XSelectionRequestEvent &rq) NOTHROW; |
1416 | void selection_send (const XSelectionRequestEvent &rq) NOTHROW; |
1442 | void selection_click (int clicks, int x, int y) NOTHROW; |
1417 | void selection_click (int clicks, int x, int y) NOTHROW; |
1443 | void selection_extend (int x, int y, int flag) NOTHROW; |
1418 | void selection_extend (int x, int y, int flag) NOTHROW; |
1444 | void selection_rotate (int x, int y) NOTHROW; |
1419 | void selection_rotate (int x, int y) NOTHROW; |
1445 | |
1420 | |
1446 | #if defined(NEXT_SCROLLBAR) |
|
|
1447 | // scrollbar-next.C |
|
|
1448 | Pixmap renderPixmap (const char *const *data, int width, int height); |
|
|
1449 | void init_scrollbar_stuff (); |
|
|
1450 | void drawBevel (Drawable d, int x1, int y1, int w, int h); |
|
|
1451 | int scrollbar_show_next (int update, int last_top, int last_bot, int scrollbar_len); |
|
|
1452 | #endif |
|
|
1453 | |
|
|
1454 | #if defined(RXVT_SCROLLBAR) |
|
|
1455 | // scrollbar-rxvt.C |
|
|
1456 | int scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len); |
|
|
1457 | #endif |
|
|
1458 | |
|
|
1459 | #if defined(XTERM_SCROLLBAR) |
|
|
1460 | // scrollbar-xterm.C |
|
|
1461 | int scrollbar_show_xterm (int update, int last_top, int last_bot, int scrollbar_len); |
|
|
1462 | #endif |
|
|
1463 | |
|
|
1464 | #if defined(PLAIN_SCROLLBAR) |
|
|
1465 | // scrollbar-plain.C |
|
|
1466 | int scrollbar_show_plain (int update, int last_top, int last_bot, int scrollbar_len); |
|
|
1467 | #endif |
|
|
1468 | |
|
|
1469 | // scrollbar.C |
|
|
1470 | void resize_scrollbar (); |
|
|
1471 | int scrollbar_mapping (int map); |
|
|
1472 | int scrollbar_show (int update); |
|
|
1473 | |
|
|
1474 | // xdefaults.C |
1421 | // xdefaults.C |
1475 | void get_options (int argc, const char *const *argv); |
1422 | void get_options (int argc, const char *const *argv); |
1476 | int parse_keysym (const char *str, const char *arg); |
1423 | int parse_keysym (const char *str, const char *arg); |
1477 | const char *x_resource (const char *name); |
1424 | const char *x_resource (const char *name); |
1478 | void extract_resources (); |
1425 | void extract_resources (); |