--- rxvt-unicode/src/rxvt.h 2003/11/25 11:52:42 1.3 +++ rxvt-unicode/src/rxvt.h 2003/11/27 16:49:45 1.9 @@ -1,5 +1,5 @@ /* - * $Id: rxvt.h,v 1.3 2003/11/25 11:52:42 pcg Exp $ + * $Id: rxvt.h,v 1.9 2003/11/27 16:49:45 pcg Exp $ */ #ifndef _RXVT_H_ /* include once only */ @@ -841,6 +841,8 @@ # include "menubar.h" #endif +#define BLINK_INTERVAL 0.5 + struct mbstate { unsigned char orig; uint32_t reg; @@ -1018,9 +1020,9 @@ gid_t egid; #endif /* ---------- */ - Cursor pointer_leftptr; + Cursor leftptr_cursor; #ifdef POINTER_BLANK - Cursor pointer_blank; + Cursor blank_cursor; #endif /* ---------- */ const char *ttydev; /* pty/tty name */ @@ -1100,9 +1102,7 @@ char *locale; char charsets[4]; unsigned char *v_buffer; /* pointer to physical buffer */ - unsigned char *v_bufstr; /* beginning of area to write */ - unsigned char *v_bufptr; /* end of area to write */ - unsigned char *v_bufend; /* end of physical buffer */ + unsigned int v_buflen; /* size of area to write */ char *newfont[MAX_NFONTS]; #ifdef KEYSYM_RESOURCE const unsigned char *Keysym_map[256]; @@ -1113,12 +1113,36 @@ unsigned char cmdbuf_base[BUFSIZ]; unsigned char kbuf[KBUFSZ]; + void destroy_cb (time_watcher &w); time_watcher destroy_ev; + void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; void x_cb (io_watcher &w, short revents); io_watcher x_ev; +#ifdef CURSOR_BLINK + void blink_cb (time_watcher &w); time_watcher blink_ev; +#endif + +#ifdef POINTER_BLANK + void pointer_cb (time_watcher &w); time_watcher pointer_ev; + void pointer_blank (); + void pointer_unblank (); +#endif + + void tt_printf (const char *fmt,...); + void tt_write (const unsigned char *data, unsigned int len); + + void flush (); + rxvt_term (); ~rxvt_term (); + void destroy (); + bool init (int argc, const char *const *argv); + bool init_vars (); + + uint32_t next_char (); + + bool pty_fill (); void process_x_events (); void *operator new (size_t s); @@ -1151,3 +1175,4 @@ #endif #endif /* _RXVT_H_ */ +