ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtlib.h.in
(Generate patch)

Comparing rxvt-unicode/src/rxvtlib.h.in (file contents):
Revision 1.59 by root, Thu Jan 5 21:21:49 2006 UTC vs.
Revision 1.64 by root, Mon Jan 9 19:01:56 2006 UTC

204#define Screen_Insert (1<<3) /* insert mode (vs. overstrike) */ 204#define Screen_Insert (1<<3) /* insert mode (vs. overstrike) */
205#define Screen_WrapNext (1<<4) /* need to wrap for next char? */ 205#define Screen_WrapNext (1<<4) /* need to wrap for next char? */
206#define Screen_DefaultFlags (Screen_VisibleCursor | Screen_Autowrap) 206#define Screen_DefaultFlags (Screen_VisibleCursor | Screen_Autowrap)
207 207
208/* rxvt_vars.options */ 208/* rxvt_vars.options */
209#define Opt_console (1UL<<0) 209enum {
210#define Opt_loginShell (1UL<<1) 210# define def(name,idx) Opt_ ## name = 1UL << (idx),
211#define Opt_iconic (1UL<<2) 211# define nodef(name) Opt_ ## name = 0,
212#define Opt_visualBell (1UL<<3) 212# include "optinc.h"
213#define Opt_mapAlert (1UL<<4) 213# undef nodef
214#define Opt_reverseVideo (1UL<<5) 214# undef def
215#define Opt_utmpInhibit (1UL<<6) 215};
216#define Opt_scrollBar (1UL<<7)
217#define Opt_scrollBar_right (1UL<<8)
218#define Opt_scrollBar_floating (1UL<<9)
219#define Opt_meta8 (1UL<<10)
220#define Opt_scrollTtyOutput (1UL<<11)
221#define Opt_scrollTtyKeypress (1UL<<12)
222#define Opt_transparent (1UL<<13)
223#define Opt_tripleclickwords (1UL<<14)
224#define Opt_scrollWithBuffer (1UL<<15)
225#define Opt_jumpScroll (1UL<<16)
226#define Opt_mouseWheelScrollPage (1UL<<17)
227#define Opt_pointerBlank (1UL<<18)
228#define Opt_cursorBlink (1UL<<19)
229#define Opt_secondaryScreen (1UL<<20)
230#define Opt_secondaryScroll (1UL<<21)
231#define Opt_pastableTabs (1UL<<22)
232#define Opt_cursorUnderline (1UL<<23)
233#if ENABLE_FRILLS
234# define Opt_insecure (1UL<<24) // insecure esc sequences
235# define Opt_borderLess (1UL<<25) // mwm borderless hints
236# define Opt_hold (1UL<<26) // hold window open after exit
237# define Opt_skipBuiltinGlyphs (1UL<<27) // do not use internal glyphs
238#else
239# define Opt_insecure 0
240# define Opt_borderLess 0
241# define Opt_hold 0
242# define Opt_skipBuiltinGlyphs 0
243#endif
244#if ENABLE_STYLES
245# define Opt_intensityStyles (1UL<<28) // font styles imply intensity
246#else
247# define Opt_intensityStyles 0
248#endif
249
250#define SET_OPTION(opt) (options |= (opt))
251#define CLR_OPTION(opt) (options &= ~(opt))
252#define OPTION(opt) (options & (opt))
253#define OPTION_R(opt) (r->options & (opt))
254#define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \
255 | Opt_jumpScroll | Opt_secondaryScreen \
256 | Opt_pastableTabs | Opt_intensityStyles)
257 216
258/* ------------------------------------------------------------------------- */ 217/* ------------------------------------------------------------------------- */
259 218
260typedef struct { 219typedef struct {
261 short state; 220 short state;
282} scrollBar_t; 241} scrollBar_t;
283 242
284struct rxvt_vars : TermWin_t { 243struct rxvt_vars : TermWin_t {
285 scrollBar_t scrollBar; 244 scrollBar_t scrollBar;
286 menuBar_t menuBar; 245 menuBar_t menuBar;
287 unsigned long options; 246 uint32_t options;
288 XSizeHints szHint; 247 XSizeHints szHint;
289 rxvt_display *display; 248 rxvt_display *display;
290 rxvt_color *pix_colors; 249 rxvt_color *pix_colors;
291 rxvt_color *pix_colors_focused; 250 rxvt_color *pix_colors_focused;
292#ifdef OFF_FOCUS_FADING 251#ifdef OFF_FOCUS_FADING
295 short numpix_colors; 254 short numpix_colors;
296 Cursor TermWin_cursor; /* cursor for vt window */ 255 Cursor TermWin_cursor; /* cursor for vt window */
297 int sb_shadow; /* scrollbar shadow width */ 256 int sb_shadow; /* scrollbar shadow width */
298 rxvt_ptytty pty; 257 rxvt_ptytty pty;
299 int numlock_state; 258 int numlock_state;
300 line_t *row_buf; // all lines, scrollback + terminal, circular 259 line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf
301 line_t *drawn_buf; // text on screen 260 line_t *drawn_buf; // text on screen
302 line_t *temp_buf; // temporary buffer
303 line_t *swap_buf; // lines for swap buffer 261 line_t *swap_buf; // lines for swap buffer
304 char *tabs; /* per location: 1 == tab-stop */ 262 char *tabs; /* per location: 1 == tab-stop */
305 screen_t screen; 263 screen_t screen;
306 screen_t swap; 264 screen_t swap;
307 selection_t selection; 265 selection_t selection;
308}; 266};
309 267
310void rxvt_init (); 268void rxvt_init ();
269bool rxvt_tainted ();
311 270
312#endif /* _RXVTLIB_H_ */ 271#endif /* _RXVTLIB_H_ */
313 272

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines