1 | /* |
1 | /* |
2 | * $Id: rxvt.h,v 1.4 2003/11/25 15:25:17 pcg Exp $ |
2 | * $Id: rxvt.h,v 1.7 2003/11/26 10:42:34 pcg Exp $ |
3 | */ |
3 | */ |
4 | |
4 | |
5 | #ifndef _RXVT_H_ /* include once only */ |
5 | #ifndef _RXVT_H_ /* include once only */ |
6 | #define _RXVT_H_ |
6 | #define _RXVT_H_ |
7 | |
7 | |
… | |
… | |
839 | */ |
839 | */ |
840 | #ifdef MENUBAR |
840 | #ifdef MENUBAR |
841 | # include "menubar.h" |
841 | # include "menubar.h" |
842 | #endif |
842 | #endif |
843 | |
843 | |
|
|
844 | #define BLINK_INTERVAL 0.5 |
|
|
845 | |
844 | struct mbstate { |
846 | struct mbstate { |
845 | unsigned char orig; |
847 | unsigned char orig; |
846 | uint32_t reg; |
848 | uint32_t reg; |
847 | int cnt; |
849 | int cnt; |
848 | |
850 | |
… | |
… | |
1016 | #if (defined(HAVE_SETEUID) || defined(HAVE_SETREUID)) && !defined(__CYGWIN32__) |
1018 | #if (defined(HAVE_SETEUID) || defined(HAVE_SETREUID)) && !defined(__CYGWIN32__) |
1017 | uid_t euid; |
1019 | uid_t euid; |
1018 | gid_t egid; |
1020 | gid_t egid; |
1019 | #endif |
1021 | #endif |
1020 | /* ---------- */ |
1022 | /* ---------- */ |
1021 | Cursor pointer_leftptr; |
1023 | Cursor leftptr_cursor; |
1022 | #ifdef POINTER_BLANK |
1024 | #ifdef POINTER_BLANK |
1023 | Cursor pointer_blank; |
1025 | Cursor blank_cursor; |
1024 | #endif |
1026 | #endif |
1025 | /* ---------- */ |
1027 | /* ---------- */ |
1026 | const char *ttydev; /* pty/tty name */ |
1028 | const char *ttydev; /* pty/tty name */ |
1027 | #ifndef NO_BACKSPACE_KEY |
1029 | #ifndef NO_BACKSPACE_KEY |
1028 | const char *key_backspace; |
1030 | const char *key_backspace; |
… | |
… | |
1114 | unsigned char kbuf[KBUFSZ]; |
1116 | unsigned char kbuf[KBUFSZ]; |
1115 | |
1117 | |
1116 | void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; |
1118 | void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; |
1117 | void x_cb (io_watcher &w, short revents); io_watcher x_ev; |
1119 | void x_cb (io_watcher &w, short revents); io_watcher x_ev; |
1118 | |
1120 | |
|
|
1121 | #ifdef CURSOR_BLINK |
|
|
1122 | void blink_cb (time_watcher &w); time_watcher blink_ev; |
|
|
1123 | #endif |
|
|
1124 | |
|
|
1125 | #ifdef POINTER_BLANK |
|
|
1126 | void pointer_cb (time_watcher &w); time_watcher pointer_ev; |
|
|
1127 | void pointer_blank (); |
|
|
1128 | void pointer_unblank (); |
|
|
1129 | #endif |
|
|
1130 | |
1119 | void flush (); |
1131 | void flush (); |
1120 | |
1132 | |
1121 | rxvt_term (); |
1133 | rxvt_term (); |
1122 | ~rxvt_term (); |
1134 | ~rxvt_term (); |
1123 | |
1135 | |
1124 | bool init (int argc, const char *const *argv); |
1136 | bool init (int argc, const char *const *argv); |
1125 | bool init_vars (); |
1137 | bool init_vars (); |
1126 | |
1138 | |
1127 | uint32_t next_char (); |
1139 | uint32_t next_char (); |
1128 | |
1140 | |
1129 | bool pty_fill (size_t count); |
1141 | bool pty_fill (); |
1130 | void process_x_events (); |
1142 | void process_x_events (); |
1131 | |
1143 | |
1132 | void *operator new (size_t s); |
1144 | void *operator new (size_t s); |
1133 | void operator delete (void *p, size_t s); |
1145 | void operator delete (void *p, size_t s); |
1134 | }; |
1146 | }; |
… | |
… | |
1157 | #ifdef DEBUG_malloc |
1169 | #ifdef DEBUG_malloc |
1158 | # include "dmalloc.h" /* This comes last */ |
1170 | # include "dmalloc.h" /* This comes last */ |
1159 | #endif |
1171 | #endif |
1160 | |
1172 | |
1161 | #endif /* _RXVT_H_ */ |
1173 | #endif /* _RXVT_H_ */ |
|
|
1174 | |