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.56 by root, Sat Dec 31 16:40:28 2005 UTC vs.
Revision 1.64 by root, Mon Jan 9 19:01:56 2006 UTC

77typedef uint32_t text_t; 77typedef uint32_t text_t;
78#else 78#else
79typedef uint16_t text_t; // saves lots of memory 79typedef uint16_t text_t; // saves lots of memory
80#endif 80#endif
81typedef uint32_t rend_t; 81typedef uint32_t rend_t;
82typedef int32_t tlen_t; // was int16_t, but this result sin smaller code and memory use 82typedef int32_t tlen_t; // was int16_t, but this results in smaller code and memory use
83typedef int32_t tlen_t_; // specifically for use in the line_t structure
83 84
84#define LINE_CONT -1
85
86struct line_t { 85struct line_t;
87 text_t *t; // terminal the text
88 rend_t *r; // rendition, uses RS_ flags
89 tlen_t l; // length of each text line, LINE_CONT == continued on next line
90
91 bool is_longer ()
92 {
93 return l < 0;
94 }
95
96 void set_is_longer ()
97 {
98 l = LINE_CONT;
99 }
100
101 void clear ()
102 {
103 t = 0;
104 r = 0;
105 l = 0;
106 }
107};
108 86
109/* 87/*
110 * terminal limits: 88 * terminal limits:
111 * 89 *
112 * width : 1 <= width 90 * width : 1 <= width
226#define Screen_Insert (1<<3) /* insert mode (vs. overstrike) */ 204#define Screen_Insert (1<<3) /* insert mode (vs. overstrike) */
227#define Screen_WrapNext (1<<4) /* need to wrap for next char? */ 205#define Screen_WrapNext (1<<4) /* need to wrap for next char? */
228#define Screen_DefaultFlags (Screen_VisibleCursor | Screen_Autowrap) 206#define Screen_DefaultFlags (Screen_VisibleCursor | Screen_Autowrap)
229 207
230/* rxvt_vars.options */ 208/* rxvt_vars.options */
231#define Opt_console (1UL<<0) 209enum {
232#define Opt_loginShell (1UL<<1) 210# define def(name,idx) Opt_ ## name = 1UL << (idx),
233#define Opt_iconic (1UL<<2) 211# define nodef(name) Opt_ ## name = 0,
234#define Opt_visualBell (1UL<<3) 212# include "optinc.h"
235#define Opt_mapAlert (1UL<<4) 213# undef nodef
236#define Opt_reverseVideo (1UL<<5) 214# undef def
237#define Opt_utmpInhibit (1UL<<6) 215};
238#define Opt_scrollBar (1UL<<7)
239#define Opt_scrollBar_right (1UL<<8)
240#define Opt_scrollBar_floating (1UL<<9)
241#define Opt_meta8 (1UL<<10)
242#define Opt_scrollTtyOutput (1UL<<11)
243#define Opt_scrollTtyKeypress (1UL<<12)
244#define Opt_transparent (1UL<<13)
245#define Opt_tripleclickwords (1UL<<14)
246#define Opt_scrollWithBuffer (1UL<<15)
247#define Opt_jumpScroll (1UL<<16)
248#define Opt_mouseWheelScrollPage (1UL<<17)
249#define Opt_pointerBlank (1UL<<18)
250#define Opt_cursorBlink (1UL<<19)
251#define Opt_secondaryScreen (1UL<<20)
252#define Opt_secondaryScroll (1UL<<21)
253#define Opt_pastableTabs (1UL<<22)
254#define Opt_cursorUnderline (1UL<<23)
255#if ENABLE_FRILLS
256# define Opt_insecure (1UL<<24) // insecure esc sequences
257# define Opt_borderLess (1UL<<25) // mem borderless hints
258# define Opt_hold (1UL<<26) // hold window open after exit
259#else
260# define Opt_insecure 0
261# define Opt_borderLess 0
262# define Opt_hold 0
263#endif
264#if ENABLE_STYLES
265# define Opt_intensityStyles (1UL<<27) // font styles imply intensity
266#else
267# define Opt_intensityStyles 0
268#endif
269/* place holder used for parsing command-line options */
270#define Opt_Reverse (1UL<<30)
271#define Opt_Boolean (1UL<<31)
272
273#define OPTION(opt) (options && (opt))
274#define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \
275 | Opt_jumpScroll | Opt_secondaryScreen \
276 | Opt_pastableTabs | Opt_intensityStyles)
277 216
278/* ------------------------------------------------------------------------- */ 217/* ------------------------------------------------------------------------- */
279 218
280typedef struct { 219typedef struct {
281 short state; 220 short state;
302} scrollBar_t; 241} scrollBar_t;
303 242
304struct rxvt_vars : TermWin_t { 243struct rxvt_vars : TermWin_t {
305 scrollBar_t scrollBar; 244 scrollBar_t scrollBar;
306 menuBar_t menuBar; 245 menuBar_t menuBar;
307 unsigned long options; 246 uint32_t options;
308 XSizeHints szHint; 247 XSizeHints szHint;
309 rxvt_display *display; 248 rxvt_display *display;
310 rxvt_color *pix_colors; 249 rxvt_color *pix_colors;
311 rxvt_color *pix_colors_focused; 250 rxvt_color *pix_colors_focused;
312#ifdef OFF_FOCUS_FADING 251#ifdef OFF_FOCUS_FADING
315 short numpix_colors; 254 short numpix_colors;
316 Cursor TermWin_cursor; /* cursor for vt window */ 255 Cursor TermWin_cursor; /* cursor for vt window */
317 int sb_shadow; /* scrollbar shadow width */ 256 int sb_shadow; /* scrollbar shadow width */
318 rxvt_ptytty pty; 257 rxvt_ptytty pty;
319 int numlock_state; 258 int numlock_state;
320 line_t *row_buf; // all lines, scrollback + terminal, circular 259 line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf
321 line_t *drawn_buf; // text on screen 260 line_t *drawn_buf; // text on screen
322 line_t *temp_buf; // temporary buffer
323 line_t *swap_buf; // lines for swap buffer 261 line_t *swap_buf; // lines for swap buffer
324 char *tabs; /* per location: 1 == tab-stop */ 262 char *tabs; /* per location: 1 == tab-stop */
325 screen_t screen; 263 screen_t screen;
326 screen_t swap; 264 screen_t swap;
327 selection_t selection; 265 selection_t selection;
328}; 266};
329 267
330void rxvt_init (); 268void rxvt_init ();
269bool rxvt_tainted ();
331 270
332#endif /* _RXVTLIB_H_ */ 271#endif /* _RXVTLIB_H_ */
333 272

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines