… | |
… | |
598 | #define PrivMode_TtyOutputInh (1UL<<15) |
598 | #define PrivMode_TtyOutputInh (1UL<<15) |
599 | #define PrivMode_Keypress (1UL<<16) |
599 | #define PrivMode_Keypress (1UL<<16) |
600 | #define PrivMode_smoothScroll (1UL<<17) |
600 | #define PrivMode_smoothScroll (1UL<<17) |
601 | #define PrivMode_vt52 (1UL<<18) |
601 | #define PrivMode_vt52 (1UL<<18) |
602 | #define PrivMode_LFNL (1UL<<19) |
602 | #define PrivMode_LFNL (1UL<<19) |
|
|
603 | #define PrivMode_MouseBtnEvent (1UL<<20) |
|
|
604 | #define PrivMode_MouseAnyEvent (1UL<<21) |
603 | /* too annoying to implement X11 highlight tracking */ |
605 | /* too annoying to implement X11 highlight tracking */ |
604 | /* #define PrivMode_MouseX11Track (1LU<<20) */ |
606 | /* #define PrivMode_MouseX11Track (1LU<<20) */ |
605 | |
607 | |
606 | #define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11) |
608 | #define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent) |
607 | |
609 | |
608 | #ifdef ALLOW_132_MODE |
610 | #ifdef ALLOW_132_MODE |
609 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
611 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
610 | #else |
612 | #else |
611 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
613 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
… | |
… | |
924 | last_state, /* scrollbar last state */ |
926 | last_state, /* scrollbar last state */ |
925 | scrollbar_len, |
927 | scrollbar_len, |
926 | window_vt_x, |
928 | window_vt_x, |
927 | window_vt_y, |
929 | window_vt_y, |
928 | window_sb_x, |
930 | window_sb_x, |
|
|
931 | mouse_row, |
|
|
932 | mouse_col, |
929 | # ifdef POINTER_BLANK |
933 | # ifdef POINTER_BLANK |
930 | pointerBlankDelay, |
934 | pointerBlankDelay, |
931 | # endif |
935 | # endif |
932 | allowedxerror; |
936 | allowedxerror; |
933 | /* ---------- */ |
937 | /* ---------- */ |
… | |
… | |
1039 | void iso14755_51 (unicode_t ch, rend_t r = DEFAULT_RSTYLE, int x = 0, int y = -1); |
1043 | void iso14755_51 (unicode_t ch, rend_t r = DEFAULT_RSTYLE, int x = 0, int y = -1); |
1040 | void iso14755_54 (int x, int y); |
1044 | void iso14755_54 (int x, int y); |
1041 | # endif |
1045 | # endif |
1042 | #endif |
1046 | #endif |
1043 | |
1047 | |
1044 | // modifies first argument(!) |
|
|
1045 | void paste (char *data, unsigned int len) NOTHROW; |
|
|
1046 | |
|
|
1047 | long vt_emask, vt_emask_perl, vt_emask_xim; |
1048 | long vt_emask, vt_emask_perl, vt_emask_xim, vt_emask_mouse; |
1048 | |
1049 | |
1049 | void vt_select_input () const NOTHROW |
1050 | void vt_select_input () const NOTHROW |
1050 | { |
1051 | { |
1051 | XSelectInput (dpy, vt, vt_emask | vt_emask_perl | vt_emask_xim); |
1052 | XSelectInput (dpy, vt, vt_emask | vt_emask_perl | vt_emask_xim | vt_emask_mouse); |
1052 | } |
1053 | } |
1053 | |
1054 | |
1054 | #if ENABLE_TRANSPARENCY || ENABLE_PERL |
1055 | #if ENABLE_TRANSPARENCY || ENABLE_PERL |
1055 | void rootwin_cb (XEvent &xev); |
1056 | void rootwin_cb (XEvent &xev); |
1056 | xevent_watcher rootwin_ev; |
1057 | xevent_watcher rootwin_ev; |
… | |
… | |
1060 | void update_background_cb (time_watcher &w); |
1061 | void update_background_cb (time_watcher &w); |
1061 | time_watcher update_background_ev; |
1062 | time_watcher update_background_ev; |
1062 | #endif |
1063 | #endif |
1063 | |
1064 | |
1064 | void x_cb (XEvent &xev); |
1065 | void x_cb (XEvent &xev); |
1065 | void flush (); |
|
|
1066 | xevent_watcher termwin_ev; |
1066 | xevent_watcher termwin_ev; |
1067 | xevent_watcher vt_ev; |
1067 | xevent_watcher vt_ev; |
1068 | #ifdef HAVE_SCROLLBARS |
1068 | #ifdef HAVE_SCROLLBARS |
1069 | xevent_watcher scrollbar_ev; |
1069 | xevent_watcher scrollbar_ev; |
1070 | #endif |
1070 | #endif |
1071 | |
1071 | |
1072 | void child_cb (child_watcher &w, int status); child_watcher child_ev; |
1072 | void child_cb (child_watcher &w, int status); child_watcher child_ev; |
1073 | void check_cb (check_watcher &w); check_watcher check_ev; |
1073 | void check_cb (check_watcher &w); check_watcher check_ev; |
1074 | void destroy_cb (time_watcher &w); time_watcher destroy_ev; |
1074 | void destroy_cb (time_watcher &w); time_watcher destroy_ev; |
|
|
1075 | void flush (); |
1075 | void flush_cb (time_watcher &w); time_watcher flush_ev; |
1076 | void flush_cb (time_watcher &w); time_watcher flush_ev; |
|
|
1077 | bool pty_fill (); |
1076 | void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; |
1078 | void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; |
1077 | void incr_cb (time_watcher &w) NOTHROW; time_watcher incr_ev; |
1079 | void incr_cb (time_watcher &w) NOTHROW; time_watcher incr_ev; |
1078 | |
1080 | |
1079 | #ifdef CURSOR_BLINK |
1081 | #ifdef CURSOR_BLINK |
1080 | void cursor_blink_cb (time_watcher &w); time_watcher cursor_blink_ev; |
1082 | void cursor_blink_cb (time_watcher &w); time_watcher cursor_blink_ev; |
… | |
… | |
1103 | void pointer_unblank (); |
1105 | void pointer_unblank (); |
1104 | |
1106 | |
1105 | void tt_printf (const char *fmt,...); |
1107 | void tt_printf (const char *fmt,...); |
1106 | void tt_write (const char *data, unsigned int len); |
1108 | void tt_write (const char *data, unsigned int len); |
1107 | void pty_write (); |
1109 | void pty_write (); |
1108 | |
|
|
1109 | void tt_winch (); |
|
|
1110 | |
|
|
1111 | rxvt_term (); |
|
|
1112 | ~rxvt_term (); |
|
|
1113 | void destroy (); |
|
|
1114 | void emergency_cleanup (); |
|
|
1115 | |
|
|
1116 | bool init (int argc, const char *const *argv, stringvec *envv); |
|
|
1117 | |
1110 | |
1118 | bool init (stringvec *argv, stringvec *envv) |
1111 | bool init (stringvec *argv, stringvec *envv) |
1119 | { |
1112 | { |
1120 | this->argv = argv; |
1113 | this->argv = argv; |
1121 | return init (argv->size (), argv->begin (), envv); |
1114 | return init (argv->size (), argv->begin (), envv); |
1122 | } |
1115 | } |
1123 | |
|
|
1124 | bool init_vars (); |
|
|
1125 | |
|
|
1126 | bool pty_fill (); |
|
|
1127 | |
1116 | |
1128 | void make_current () const // make this the "currently active" urxvt instance |
1117 | void make_current () const // make this the "currently active" urxvt instance |
1129 | { |
1118 | { |
1130 | SET_R (this); |
1119 | SET_R (this); |
1131 | set_environ (envv); |
1120 | set_environ (envv); |
1132 | rxvt_set_locale (locale); |
1121 | rxvt_set_locale (locale); |
1133 | } |
1122 | } |
1134 | |
1123 | |
1135 | void init_secondary (); |
|
|
1136 | const char **init_resources (int argc, const char *const *argv); |
|
|
1137 | void init_env (); |
|
|
1138 | void set_locale (const char *locale); |
|
|
1139 | void init_xlocale (); |
|
|
1140 | void init_command (const char *const *argv); |
|
|
1141 | void run_command (const char *const *argv); |
|
|
1142 | int run_child (const char *const *argv); |
|
|
1143 | |
|
|
1144 | void color_aliases (int idx); |
|
|
1145 | void recolour_cursor (); |
|
|
1146 | void create_windows (int argc, const char *const *argv); |
|
|
1147 | void resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent); |
|
|
1148 | void window_calc (unsigned int newwidth, unsigned int newheight); |
|
|
1149 | |
|
|
1150 | #if USE_XIM |
1124 | #if USE_XIM |
1151 | rxvt_xim *input_method; |
1125 | rxvt_xim *input_method; |
1152 | XIC Input_Context; |
1126 | XIC Input_Context; |
1153 | XIMStyle input_style; |
1127 | XIMStyle input_style; |
1154 | XPoint spot; // most recently sent spot position |
1128 | XPoint spot; // most recently sent spot position |
… | |
… | |
1163 | bool IMisRunning (); |
1137 | bool IMisRunning (); |
1164 | void IMSendSpot (); |
1138 | void IMSendSpot (); |
1165 | bool IM_get_IC (const char *modifiers); |
1139 | bool IM_get_IC (const char *modifiers); |
1166 | void IMSetPosition (); |
1140 | void IMSetPosition (); |
1167 | #endif |
1141 | #endif |
1168 | |
|
|
1169 | void resize_scrollbar (); |
|
|
1170 | |
1142 | |
1171 | // command.C |
1143 | // command.C |
1172 | void key_press (XKeyEvent &ev); |
1144 | void key_press (XKeyEvent &ev); |
1173 | void key_release (XKeyEvent &ev); |
1145 | void key_release (XKeyEvent &ev); |
1174 | unsigned int cmd_write (const char *str, unsigned int count); |
1146 | unsigned int cmd_write (const char *str, unsigned int count); |
… | |
… | |
1203 | int privcases (int mode, unsigned long bit); |
1175 | int privcases (int mode, unsigned long bit); |
1204 | void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg); |
1176 | void process_terminal_mode (int mode, int priv, unsigned int nargs, const int *arg); |
1205 | void process_sgr_mode (unsigned int nargs, const int *arg); |
1177 | void process_sgr_mode (unsigned int nargs, const int *arg); |
1206 | void process_graphics (); |
1178 | void process_graphics (); |
1207 | // init.C |
1179 | // init.C |
|
|
1180 | bool init_vars (); |
|
|
1181 | void init_secondary (); |
|
|
1182 | const char **init_resources (int argc, const char *const *argv); |
|
|
1183 | void init_env (); |
|
|
1184 | void set_locale (const char *locale); |
|
|
1185 | void init_xlocale (); |
|
|
1186 | void init_command (const char *const *argv); |
|
|
1187 | void run_command (const char *const *argv); |
|
|
1188 | int run_child (const char *const *argv); |
|
|
1189 | void color_aliases (int idx); |
|
|
1190 | void create_windows (int argc, const char *const *argv); |
1208 | void Get_Colours (); |
1191 | void Get_Colours (); |
1209 | void get_ourmods (); |
1192 | void get_ourmods (); |
1210 | // main.C |
1193 | // main.C |
|
|
1194 | void tt_winch (); |
|
|
1195 | rxvt_term (); |
|
|
1196 | ~rxvt_term (); |
|
|
1197 | void destroy (); |
|
|
1198 | void emergency_cleanup (); |
|
|
1199 | bool init (int argc, const char *const *argv, stringvec *envv); |
|
|
1200 | void recolour_cursor (); |
|
|
1201 | void resize_all_windows (unsigned int newwidth, unsigned int newheight, int ignoreparent); |
|
|
1202 | void window_calc (unsigned int newwidth, unsigned int newheight); |
1211 | bool set_fonts (); |
1203 | bool set_fonts (); |
1212 | void set_string_property (Atom prop, const char *str, int len = -1); |
1204 | void set_string_property (Atom prop, const char *str, int len = -1); |
1213 | void set_utf8_property (Atom prop, const char *str, int len = -1); |
1205 | void set_utf8_property (Atom prop, const char *str, int len = -1); |
1214 | void set_title (const char *str); |
1206 | void set_title (const char *str); |
1215 | void set_icon_name (const char *str); |
1207 | void set_icon_name (const char *str); |
… | |
… | |
1298 | priv_modes |= bit; |
1290 | priv_modes |= bit; |
1299 | else |
1291 | else |
1300 | priv_modes &= ~bit; |
1292 | priv_modes &= ~bit; |
1301 | } |
1293 | } |
1302 | |
1294 | |
|
|
1295 | // modifies first argument(!) |
|
|
1296 | void paste (char *data, unsigned int len) NOTHROW; |
1303 | void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; |
1297 | void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; |
1304 | void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; |
1298 | void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; |
1305 | int scr_scroll_text (int row1, int row2, int count) NOTHROW; |
1299 | int scr_scroll_text (int row1, int row2, int count) NOTHROW; |
1306 | void scr_reset (); |
1300 | void scr_reset (); |
1307 | void scr_release () NOTHROW; |
1301 | void scr_release () NOTHROW; |
… | |
… | |
1314 | void scr_backindex () NOTHROW; |
1308 | void scr_backindex () NOTHROW; |
1315 | void scr_forwardindex () NOTHROW; |
1309 | void scr_forwardindex () NOTHROW; |
1316 | #endif |
1310 | #endif |
1317 | void scr_touch (bool refresh) NOTHROW; |
1311 | void scr_touch (bool refresh) NOTHROW; |
1318 | void scr_expose (int x, int y, int width, int height, bool refresh) NOTHROW; |
1312 | void scr_expose (int x, int y, int width, int height, bool refresh) NOTHROW; |
1319 | rxvt_fontset *scr_find_fontset (rend_t r = DEFAULT_RSTYLE); |
|
|
1320 | void scr_recolour () NOTHROW; |
1313 | void scr_recolour () NOTHROW; |
1321 | void scr_remap_chars () NOTHROW; |
1314 | void scr_remap_chars () NOTHROW; |
1322 | void scr_remap_chars (line_t &l) NOTHROW; |
1315 | void scr_remap_chars (line_t &l) NOTHROW; |
1323 | |
1316 | |
1324 | enum cursor_mode { SAVE, RESTORE }; |
1317 | enum cursor_mode { SAVE, RESTORE }; |
… | |
… | |
1375 | void selection_send (const XSelectionRequestEvent &rq) NOTHROW; |
1368 | void selection_send (const XSelectionRequestEvent &rq) NOTHROW; |
1376 | void selection_click (int clicks, int x, int y) NOTHROW; |
1369 | void selection_click (int clicks, int x, int y) NOTHROW; |
1377 | void selection_extend (int x, int y, int flag) NOTHROW; |
1370 | void selection_extend (int x, int y, int flag) NOTHROW; |
1378 | void selection_rotate (int x, int y) NOTHROW; |
1371 | void selection_rotate (int x, int y) NOTHROW; |
1379 | |
1372 | |
1380 | void pixel_position (int *x, int *y) NOTHROW; |
|
|
1381 | |
|
|
1382 | #if defined(NEXT_SCROLLBAR) |
1373 | #if defined(NEXT_SCROLLBAR) |
1383 | // scrollbar-next.C |
1374 | // scrollbar-next.C |
1384 | Pixmap renderPixmap (const char *const *data, int width, int height); |
1375 | Pixmap renderPixmap (const char *const *data, int width, int height); |
1385 | void init_scrollbar_stuff (); |
1376 | void init_scrollbar_stuff (); |
1386 | void drawBevel (Drawable d, int x1, int y1, int w, int h); |
1377 | void drawBevel (Drawable d, int x1, int y1, int w, int h); |
… | |
… | |
1401 | // scrollbar-plain.C |
1392 | // scrollbar-plain.C |
1402 | int scrollbar_show_plain (int update, int last_top, int last_bot, int scrollbar_len); |
1393 | int scrollbar_show_plain (int update, int last_top, int last_bot, int scrollbar_len); |
1403 | #endif |
1394 | #endif |
1404 | |
1395 | |
1405 | // scrollbar.C |
1396 | // scrollbar.C |
|
|
1397 | void resize_scrollbar (); |
1406 | int scrollbar_mapping (int map); |
1398 | int scrollbar_mapping (int map); |
1407 | int scrollbar_show (int update); |
1399 | int scrollbar_show (int update); |
1408 | void setup_scrollbar (const char *scrollalign, const char *scrollstyle, const char *thickness); |
1400 | void setup_scrollbar (const char *scrollalign, const char *scrollstyle, const char *thickness); |
1409 | |
1401 | |
1410 | // xdefaults.C |
1402 | // xdefaults.C |
1411 | void get_options (int argc, const char *const *argv); |
1403 | void get_options (int argc, const char *const *argv); |
1412 | int parse_keysym (const char *str, const char *arg); |
1404 | int parse_keysym (const char *str, const char *arg); |
1413 | void get_xdefaults (FILE *stream, const char *name); |
1405 | const char *x_resource (const char *name); |
1414 | void extract_resources (); |
1406 | void extract_resources (); |
1415 | }; |
1407 | }; |
1416 | |
1408 | |
1417 | #endif /* _RXVT_H_ */ |
1409 | #endif /* _RXVT_H_ */ |
1418 | |
1410 | |