--- rxvt-unicode/src/rxvtlib.h.in 2004/04/02 18:00:01 1.20 +++ rxvt-unicode/src/rxvtlib.h.in 2004/08/16 00:17:27 1.32 @@ -24,6 +24,8 @@ #include +#include "ptytty.h" + extern "C" { #include /* Xlib, Xutil, Xresource, Xfuncproto */ } @@ -106,6 +108,7 @@ Pixmap pixmap; rxvt_fontset *fontset; rxvt_drawable *drawable; + uint16_t ascii_map[0x7f - 0x20]; // map ascii chars to fonts for speed } TermWin_t; /* @@ -181,7 +184,7 @@ #define Screen_WrapNext (1<<4) /* need to wrap for next char? */ #define Screen_DefaultFlags (Screen_VisibleCursor|Screen_Autowrap) -/* rxvt_vars.Options */ +/* rxvt_vars.options */ #define Opt_console (1UL<<0) #define Opt_loginShell (1UL<<1) #define Opt_iconic (1UL<<2) @@ -197,20 +200,22 @@ #define Opt_scrollTtyKeypress (1UL<<12) #define Opt_transparent (1UL<<13) #define Opt_transparent_all (1UL<<14) -#define Opt_15 (1UL<<15) // UNALLOCATED +#define Opt_realBold (1UL<<15) #define Opt_tripleclickwords (1UL<<16) #define Opt_scrollWithBuffer (1UL<<17) #define Opt_jumpScroll (1UL<<18) #define Opt_mouseWheelScrollPage (1UL<<19) #define Opt_pointerBlank (1UL<<20) #define Opt_cursorBlink (1UL<<21) -#ifdef NO_FRILLS -# define Opt_insecure 0 +#define Opt_secondaryScreen (1UL<<22) +#define Opt_secondaryScroll (1UL<<23) +#if ENABLE_FRILLS +# define Opt_insecure (1UL<<24) // insecure esc sequences +# define Opt_borderLess (1UL<<25) // mem borderless hints #else -# define Opt_insecure (1UL<<22) // insecure esc sequences +# define Opt_insecure 0 +# define Opt_borderLess 0 #endif -#define Opt_secondaryScreen (1UL<<23) -#define Opt_secondaryScroll (1UL<<24) /* place holder used for parsing command-line options */ #define Opt_Reverse (1UL<<30) #define Opt_Boolean (1UL<<31) @@ -248,15 +253,18 @@ TermWin_t TermWin; scrollBar_t scrollBar; menuBar_t menuBar; - unsigned long Options; + unsigned long options; XSizeHints szHint; rxvt_display *display; - rxvt_color *PixColors; - short numPixColors; + rxvt_color *pix_colors; + rxvt_color *pix_colors_focused; +#ifdef OFF_FOCUS_FADING + rxvt_color *pix_colors_unfocused; +#endif + short numpix_colors; Cursor TermWin_cursor; /* cursor for vt window */ int sb_shadow; /* scrollbar shadow width */ - int cmd_fd; /* pty file descriptor; connected to command */ - int tty_fd; /* tty file descriptor; connected to child */ + rxvt_ptytty pty; int numlock_state; text_t **drawn_text; /* text drawn on screen (characters) */ rend_t **drawn_rend; /* text drawn on screen (rendition) */ @@ -268,8 +276,7 @@ selection_t selection; }; -void rxvt_init_signals (); -rxvt_t rxvt_init (int argc, const char *const *argv); +void rxvt_init (); #endif /* _RXVTLIB_H_ */