… | |
… | |
629 | #ifdef TRANSPARENT |
629 | #ifdef TRANSPARENT |
630 | Rs_transparent, |
630 | Rs_transparent, |
631 | Rs_transparent_all, |
631 | Rs_transparent_all, |
632 | #endif |
632 | #endif |
633 | #if ENABLE_FRILLS |
633 | #if ENABLE_FRILLS |
|
|
634 | Rs_pty_fd, |
|
|
635 | Rs_hold, |
634 | Rs_ext_bwidth, |
636 | Rs_ext_bwidth, |
635 | Rs_int_bwidth, |
637 | Rs_int_bwidth, |
636 | Rs_borderLess, |
638 | Rs_borderLess, |
637 | Rs_lineSpace, |
639 | Rs_lineSpace, |
638 | Rs_pty_fd, |
|
|
639 | Rs_cursorUnderline, |
640 | Rs_cursorUnderline, |
640 | #endif |
641 | #endif |
641 | #if CURSOR_BLINK |
642 | #if CURSOR_BLINK |
642 | Rs_cursorBlink, |
643 | Rs_cursorBlink, |
643 | #endif |
644 | #endif |
… | |
… | |
958 | #endif |
959 | #endif |
959 | |
960 | |
960 | extern class rxvt_failure_exception { } rxvt_failure_exception; |
961 | extern class rxvt_failure_exception { } rxvt_failure_exception; |
961 | |
962 | |
962 | typedef callback1<void, const char *> log_callback; |
963 | typedef callback1<void, const char *> log_callback; |
|
|
964 | typedef callback1<int, int> getfd_callback; |
963 | |
965 | |
964 | extern void rxvt_vlog (const char *fmt, va_list arg_ptr); |
966 | extern void rxvt_vlog (const char *fmt, va_list arg_ptr); |
965 | extern void rxvt_log (const char *fmt, ...); |
967 | extern void rxvt_log (const char *fmt, ...); |
966 | extern void rxvt_warn (const char *fmt, ...); |
968 | extern void rxvt_warn (const char *fmt, ...); |
967 | extern void rxvt_fatal (const char *fmt, ...) __attribute__ ((noreturn)); |
969 | extern void rxvt_fatal (const char *fmt, ...) __attribute__ ((noreturn)); |
… | |
… | |
1044 | class keyboard_manager; |
1046 | class keyboard_manager; |
1045 | #endif |
1047 | #endif |
1046 | |
1048 | |
1047 | struct rxvt_term : zero_initialized, rxvt_vars { |
1049 | struct rxvt_term : zero_initialized, rxvt_vars { |
1048 | log_callback *log_hook; // log error messages through this hook, if != 0 |
1050 | log_callback *log_hook; // log error messages through this hook, if != 0 |
|
|
1051 | getfd_callback *getfd_hook; // convert remote to local fd, if != 0 |
1049 | |
1052 | |
1050 | struct mbstate mbstate; // current input multibyte state |
1053 | struct mbstate mbstate; // current input multibyte state |
1051 | |
1054 | |
1052 | unsigned char want_refresh:1, |
1055 | unsigned char want_refresh:1, |
1053 | #ifdef TRANSPARENT |
1056 | #ifdef TRANSPARENT |
… | |
… | |
1322 | |
1325 | |
1323 | void tt_winch (); |
1326 | void tt_winch (); |
1324 | |
1327 | |
1325 | rxvt_term (); |
1328 | rxvt_term (); |
1326 | ~rxvt_term (); |
1329 | ~rxvt_term (); |
|
|
1330 | void child_exit (); // child has exited, usually destroys |
1327 | void destroy (); |
1331 | void destroy (); |
1328 | void emergency_cleanup (); |
1332 | void emergency_cleanup (); |
1329 | |
1333 | |
1330 | bool init (int argc, const char *const *argv); |
1334 | bool init (int argc, const char *const *argv); |
1331 | bool init_vars (); |
1335 | bool init_vars (); |
… | |
… | |
1468 | { |
1472 | { |
1469 | l.t = (text_t *)talloc->alloc (); |
1473 | l.t = (text_t *)talloc->alloc (); |
1470 | l.r = (rend_t *)ralloc->alloc (); |
1474 | l.r = (rend_t *)ralloc->alloc (); |
1471 | } |
1475 | } |
1472 | |
1476 | |
|
|
1477 | #if 0 |
1473 | void lfree (line_t &l) |
1478 | void lfree (line_t &l) |
1474 | { |
1479 | { |
1475 | talloc->free (l.t); |
1480 | talloc->free (l.t); |
1476 | ralloc->free (l.r); |
1481 | ralloc->free (l.r); |
1477 | } |
1482 | } |
|
|
1483 | #endif |
1478 | |
1484 | |
1479 | void lresize (line_t &l) |
1485 | void lresize (line_t &l) |
1480 | { |
1486 | { |
1481 | if (!l.t) |
1487 | if (!l.t) |
1482 | return; |
1488 | return; |