1 | /* |
1 | /* |
2 | * $Id: rxvt.h,v 1.7 2003/11/26 10:42:34 pcg Exp $ |
2 | * $Id: rxvt.h,v 1.9 2003/11/27 16:49:45 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 | |
… | |
… | |
1100 | char *env_colorfgbg; |
1100 | char *env_colorfgbg; |
1101 | char *buffer; |
1101 | char *buffer; |
1102 | char *locale; |
1102 | char *locale; |
1103 | char charsets[4]; |
1103 | char charsets[4]; |
1104 | unsigned char *v_buffer; /* pointer to physical buffer */ |
1104 | unsigned char *v_buffer; /* pointer to physical buffer */ |
1105 | unsigned char *v_bufstr; /* beginning of area to write */ |
|
|
1106 | unsigned char *v_bufptr; /* end of area to write */ |
1105 | unsigned int v_buflen; /* size of area to write */ |
1107 | unsigned char *v_bufend; /* end of physical buffer */ |
|
|
1108 | char *newfont[MAX_NFONTS]; |
1106 | char *newfont[MAX_NFONTS]; |
1109 | #ifdef KEYSYM_RESOURCE |
1107 | #ifdef KEYSYM_RESOURCE |
1110 | const unsigned char *Keysym_map[256]; |
1108 | const unsigned char *Keysym_map[256]; |
1111 | #endif |
1109 | #endif |
1112 | const char *rs[NUM_RESOURCES]; |
1110 | const char *rs[NUM_RESOURCES]; |
1113 | /* command input buffering */ |
1111 | /* command input buffering */ |
1114 | unsigned char *cmdbuf_ptr, *cmdbuf_endp; |
1112 | unsigned char *cmdbuf_ptr, *cmdbuf_endp; |
1115 | unsigned char cmdbuf_base[BUFSIZ]; |
1113 | unsigned char cmdbuf_base[BUFSIZ]; |
1116 | unsigned char kbuf[KBUFSZ]; |
1114 | unsigned char kbuf[KBUFSZ]; |
1117 | |
1115 | |
|
|
1116 | void destroy_cb (time_watcher &w); time_watcher destroy_ev; |
|
|
1117 | |
1118 | 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; |
1119 | 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; |
1120 | |
1120 | |
1121 | #ifdef CURSOR_BLINK |
1121 | #ifdef CURSOR_BLINK |
1122 | void blink_cb (time_watcher &w); time_watcher blink_ev; |
1122 | void blink_cb (time_watcher &w); time_watcher blink_ev; |
… | |
… | |
1126 | void pointer_cb (time_watcher &w); time_watcher pointer_ev; |
1126 | void pointer_cb (time_watcher &w); time_watcher pointer_ev; |
1127 | void pointer_blank (); |
1127 | void pointer_blank (); |
1128 | void pointer_unblank (); |
1128 | void pointer_unblank (); |
1129 | #endif |
1129 | #endif |
1130 | |
1130 | |
|
|
1131 | void tt_printf (const char *fmt,...); |
|
|
1132 | void tt_write (const unsigned char *data, unsigned int len); |
|
|
1133 | |
1131 | void flush (); |
1134 | void flush (); |
1132 | |
1135 | |
1133 | rxvt_term (); |
1136 | rxvt_term (); |
1134 | ~rxvt_term (); |
1137 | ~rxvt_term (); |
|
|
1138 | void destroy (); |
1135 | |
1139 | |
1136 | bool init (int argc, const char *const *argv); |
1140 | bool init (int argc, const char *const *argv); |
1137 | bool init_vars (); |
1141 | bool init_vars (); |
1138 | |
1142 | |
1139 | uint32_t next_char (); |
1143 | uint32_t next_char (); |