… | |
… | |
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 | |
… | |
… | |
209 | ***************************************************************************** |
200 | ***************************************************************************** |
210 | * STRUCTURES AND TYPEDEFS |
201 | * STRUCTURES AND TYPEDEFS |
211 | ***************************************************************************** |
202 | ***************************************************************************** |
212 | */ |
203 | */ |
213 | |
204 | |
214 | /* If we're using either the rxvt scrollbar, keep the |
|
|
215 | * scrollColor resource. |
|
|
216 | */ |
|
|
217 | #if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(PLAIN_SCROLLBAR) |
|
|
218 | # define KEEP_SCROLLCOLOR 1 |
|
|
219 | #else |
|
|
220 | # undef KEEP_SCROLLCOLOR |
|
|
221 | #endif |
|
|
222 | |
|
|
223 | /* |
205 | /* |
224 | * the 'essential' information for reporting Mouse Events |
206 | * the 'essential' information for reporting Mouse Events |
225 | * pared down from XButtonEvent |
207 | * pared down from XButtonEvent |
226 | */ |
208 | */ |
227 | struct mouse_event { |
209 | struct mouse_event { |
… | |
… | |
277 | # define NO_MOUSE_REPORT_SCROLLBAR 1 |
259 | # define NO_MOUSE_REPORT_SCROLLBAR 1 |
278 | #endif |
260 | #endif |
279 | |
261 | |
280 | #define scrollBar_esc 30 |
262 | #define scrollBar_esc 30 |
281 | |
263 | |
282 | #if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR) |
264 | #if !defined (RXVT_SCROLLBAR) && !defined (NEXT_SCROLLBAR) |
283 | # define HAVE_SCROLLBARS 1 |
265 | # define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
284 | #endif |
266 | #endif |
285 | |
267 | |
286 | enum { |
268 | enum { |
287 | NO_REFRESH = 0, /* Window not visible at all! */ |
269 | NO_REFRESH = 0, /* Window not visible at all! */ |
288 | FAST_REFRESH = 1, /* Fully exposed window */ |
270 | FAST_REFRESH = 1, /* Fully exposed window */ |
… | |
… | |
497 | Color_underline, |
479 | Color_underline, |
498 | #endif |
480 | #endif |
499 | #ifdef OPTION_HC |
481 | #ifdef OPTION_HC |
500 | Color_HC, |
482 | Color_HC, |
501 | #endif |
483 | #endif |
502 | #ifdef KEEP_SCROLLCOLOR |
|
|
503 | Color_scroll, |
484 | Color_scroll, |
|
|
485 | #ifdef RXVT_SCROLLBAR |
504 | Color_trough, |
486 | Color_trough, |
505 | #endif |
487 | #endif |
506 | #if ENABLE_TRANSPARENCY |
488 | #if ENABLE_TRANSPARENCY |
507 | Color_tint, |
489 | Color_tint, |
508 | #endif |
490 | #endif |
509 | #if OFF_FOCUS_FADING |
491 | #if OFF_FOCUS_FADING |
510 | Color_fade, |
492 | Color_fade, |
511 | #endif |
493 | #endif |
512 | NRS_COLORS, /* */ |
494 | NRS_COLORS, /* */ |
513 | #ifdef KEEP_SCROLLCOLOR |
495 | #ifdef RXVT_SCROLLBAR |
514 | Color_topShadow = NRS_COLORS, |
496 | Color_topShadow = NRS_COLORS, |
515 | Color_bottomShadow, |
497 | Color_bottomShadow, |
516 | TOTAL_COLORS |
498 | TOTAL_COLORS |
517 | #else |
499 | #else |
518 | TOTAL_COLORS = NRS_COLORS |
500 | TOTAL_COLORS = NRS_COLORS |
… | |
… | |
1008 | mouse_slip_wheel_speed, |
990 | mouse_slip_wheel_speed, |
1009 | #endif |
991 | #endif |
1010 | refresh_count, |
992 | refresh_count, |
1011 | window_vt_x, |
993 | window_vt_x, |
1012 | window_vt_y, |
994 | window_vt_y, |
1013 | window_sb_x, |
|
|
1014 | mouse_row, |
995 | mouse_row, |
1015 | mouse_col, |
996 | mouse_col, |
1016 | # ifdef POINTER_BLANK |
997 | # ifdef POINTER_BLANK |
1017 | pointerBlankDelay, |
998 | pointerBlankDelay, |
1018 | # endif |
999 | # endif |
… | |
… | |
1120 | |
1101 | |
1121 | #if ENABLE_FRILLS || ISO_14755 |
1102 | #if ENABLE_FRILLS || ISO_14755 |
1122 | // ISO 14755 entry support |
1103 | // ISO 14755 entry support |
1123 | unicode_t iso14755buf; |
1104 | unicode_t iso14755buf; |
1124 | void commit_iso14755 (); |
1105 | void commit_iso14755 (); |
1125 | int hex_keyval (XKeyEvent &ev); |
|
|
1126 | # if ISO_14755 |
1106 | # if ISO_14755 |
1127 | void iso14755_51 (unicode_t ch, rend_t r = DEFAULT_RSTYLE, int x = 0, int y = -1); |
1107 | void iso14755_51 (unicode_t ch, rend_t r = DEFAULT_RSTYLE, int x = 0, int y = -1); |
1128 | void iso14755_54 (int x, int y); |
1108 | void iso14755_54 (int x, int y); |
1129 | # endif |
1109 | # endif |
1130 | #endif |
1110 | #endif |
… | |
… | |
1151 | #endif |
1131 | #endif |
1152 | |
1132 | |
1153 | void x_cb (XEvent &xev); |
1133 | void x_cb (XEvent &xev); |
1154 | xevent_watcher termwin_ev; |
1134 | xevent_watcher termwin_ev; |
1155 | xevent_watcher vt_ev; |
1135 | xevent_watcher vt_ev; |
1156 | #ifdef HAVE_SCROLLBARS |
|
|
1157 | xevent_watcher scrollbar_ev; |
1136 | xevent_watcher scrollbar_ev; |
1158 | #endif |
|
|
1159 | |
1137 | |
1160 | void child_cb (ev::child &w, int revents); ev::child child_ev; |
1138 | void child_cb (ev::child &w, int revents); ev::child child_ev; |
1161 | void destroy_cb (ev::idle &w, int revents); ev::idle destroy_ev; |
1139 | void destroy_cb (ev::idle &w, int revents); ev::idle destroy_ev; |
1162 | void refresh_check (); |
1140 | void refresh_check (); |
1163 | void flush (); |
1141 | void flush (); |
… | |
… | |
1377 | options[opt >> 3] |= (1 << (opt & 7)); |
1355 | options[opt >> 3] |= (1 << (opt & 7)); |
1378 | else |
1356 | else |
1379 | options[opt >> 3] &= ~(1 << (opt & 7)); |
1357 | options[opt >> 3] &= ~(1 << (opt & 7)); |
1380 | } |
1358 | } |
1381 | |
1359 | |
1382 | void PrivMode (int set, unsigned bit) NOTHROW |
1360 | void set_privmode (unsigned bit, int set) NOTHROW |
1383 | { |
1361 | { |
1384 | if (set) |
1362 | if (set) |
1385 | priv_modes |= bit; |
1363 | priv_modes |= bit; |
1386 | else |
1364 | else |
1387 | priv_modes &= ~bit; |
1365 | priv_modes &= ~bit; |
… | |
… | |
1490 | |
1468 | |
1491 | // scrollbar.C |
1469 | // scrollbar.C |
1492 | void resize_scrollbar (); |
1470 | void resize_scrollbar (); |
1493 | int scrollbar_mapping (int map); |
1471 | int scrollbar_mapping (int map); |
1494 | int scrollbar_show (int update); |
1472 | int scrollbar_show (int update); |
1495 | void setup_scrollbar (const char *scrollalign, const char *scrollstyle, const char *thickness); |
|
|
1496 | |
1473 | |
1497 | // xdefaults.C |
1474 | // xdefaults.C |
1498 | void get_options (int argc, const char *const *argv); |
1475 | void get_options (int argc, const char *const *argv); |
1499 | int parse_keysym (const char *str, const char *arg); |
1476 | int parse_keysym (const char *str, const char *arg); |
1500 | const char *x_resource (const char *name); |
1477 | const char *x_resource (const char *name); |