… | |
… | |
888 | #endif |
888 | #endif |
889 | |
889 | |
890 | /****************************************************************************/ |
890 | /****************************************************************************/ |
891 | |
891 | |
892 | #ifdef KEYSYM_RESOURCE |
892 | #ifdef KEYSYM_RESOURCE |
893 | class keyboard_manager; |
893 | class keyboard_manager; |
894 | #endif |
894 | #endif |
895 | |
895 | |
896 | struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen { |
896 | struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen { |
|
|
897 | |
|
|
898 | // special markers with magic addresses |
|
|
899 | static const char resval_undef []; // options specifically unset |
|
|
900 | static const char resval_on []; // boolean options switched on |
|
|
901 | static const char resval_off []; // or off |
|
|
902 | |
897 | log_callback *log_hook; // log error messages through this hook, if != 0 |
903 | log_callback *log_hook; // log error messages through this hook, if != 0 |
898 | getfd_callback *getfd_hook; // convert remote to local fd, if != 0 |
904 | getfd_callback *getfd_hook; // convert remote to local fd, if != 0 |
899 | #if ENABLE_PERL |
905 | #if ENABLE_PERL |
900 | rxvt_perl_term perl; |
906 | rxvt_perl_term perl; |
901 | #endif |
907 | #endif |
902 | struct mbstate mbstate; // current input multibyte state |
908 | struct mbstate mbstate; // current input multibyte state |
… | |
… | |
1089 | |
1095 | |
1090 | long vt_emask, vt_emask_perl, vt_emask_xim; |
1096 | long vt_emask, vt_emask_perl, vt_emask_xim; |
1091 | |
1097 | |
1092 | void vt_select_input () const NOTHROW |
1098 | void vt_select_input () const NOTHROW |
1093 | { |
1099 | { |
1094 | XSelectInput (xdisp, vt, vt_emask | vt_emask_perl | vt_emask_xim); |
1100 | XSelectInput (dpy, vt, vt_emask | vt_emask_perl | vt_emask_xim); |
1095 | } |
1101 | } |
1096 | |
1102 | |
1097 | #if TRANSPARENT |
1103 | #if TRANSPARENT |
1098 | void rootwin_cb (XEvent &xev); |
1104 | void rootwin_cb (XEvent &xev); |
1099 | xevent_watcher rootwin_ev; |
1105 | xevent_watcher rootwin_ev; |
… | |
… | |
1200 | void im_set_preedit_area (XRectangle &preedit_rect, XRectangle &status_rect, const XRectangle &needed_rect); |
1206 | void im_set_preedit_area (XRectangle &preedit_rect, XRectangle &status_rect, const XRectangle &needed_rect); |
1201 | |
1207 | |
1202 | bool IMisRunning (); |
1208 | bool IMisRunning (); |
1203 | void IMSendSpot (); |
1209 | void IMSendSpot (); |
1204 | bool IM_get_IC (const char *modifiers); |
1210 | bool IM_get_IC (const char *modifiers); |
1205 | void IMSetStatusPosition (); |
1211 | void IMSetPosition (); |
1206 | #endif |
1212 | #endif |
1207 | |
1213 | |
1208 | void resize_scrollbar (); |
1214 | void resize_scrollbar (); |
1209 | |
1215 | |
1210 | // command.C |
1216 | // command.C |
1211 | void lookup_key (XKeyEvent &ev); |
1217 | void key_press (XKeyEvent &ev); |
|
|
1218 | void key_release (XKeyEvent &ev); |
1212 | unsigned int cmd_write (const char *str, unsigned int count); |
1219 | unsigned int cmd_write (const char *str, unsigned int count); |
1213 | |
1220 | |
1214 | wchar_t next_char () NOTHROW; |
1221 | wchar_t next_char () NOTHROW; |
1215 | wchar_t cmd_getc () THROW ((class out_of_input)); |
1222 | wchar_t cmd_getc () THROW ((class out_of_input)); |
1216 | uint32_t next_octet () NOTHROW; |
1223 | uint32_t next_octet () NOTHROW; |
… | |
… | |
1252 | void set_title (const char *str); |
1259 | void set_title (const char *str); |
1253 | void set_icon_name (const char *str); |
1260 | void set_icon_name (const char *str); |
1254 | void set_window_color (int idx, const char *color); |
1261 | void set_window_color (int idx, const char *color); |
1255 | void set_colorfgbg (); |
1262 | void set_colorfgbg (); |
1256 | bool set_color (rxvt_color &color, const char *name); |
1263 | bool set_color (rxvt_color &color, const char *name); |
|
|
1264 | void alias_color (int dst, int src); |
1257 | void set_widthheight (unsigned int newwidth, unsigned int newheight); |
1265 | void set_widthheight (unsigned int newwidth, unsigned int newheight); |
1258 | |
1266 | |
1259 | // screen.C |
1267 | // screen.C |
1260 | |
1268 | |
1261 | void lalloc (line_t &l) const |
1269 | void lalloc (line_t &l) const |