… | |
… | |
212 | # include "optinc.h" |
212 | # include "optinc.h" |
213 | # undef nodef |
213 | # undef nodef |
214 | # undef def |
214 | # undef def |
215 | }; |
215 | }; |
216 | |
216 | |
217 | #define SET_OPTION(opt) (options |= (opt)) |
|
|
218 | #define CLR_OPTION(opt) (options &= ~(opt)) |
|
|
219 | #define OPTION(opt) (options & (opt)) |
|
|
220 | #define OPTION_R(opt) (r->options & (opt)) |
|
|
221 | #define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ |
|
|
222 | | Opt_jumpScroll | Opt_secondaryScreen \ |
|
|
223 | | Opt_pastableTabs | Opt_intensityStyles) |
|
|
224 | |
|
|
225 | /* ------------------------------------------------------------------------- */ |
217 | /* ------------------------------------------------------------------------- */ |
226 | |
218 | |
227 | typedef struct { |
219 | typedef struct { |
228 | short state; |
220 | short state; |
229 | Window win; |
221 | Window win; |
… | |
… | |
249 | } scrollBar_t; |
241 | } scrollBar_t; |
250 | |
242 | |
251 | struct rxvt_vars : TermWin_t { |
243 | struct rxvt_vars : TermWin_t { |
252 | scrollBar_t scrollBar; |
244 | scrollBar_t scrollBar; |
253 | menuBar_t menuBar; |
245 | menuBar_t menuBar; |
254 | unsigned long options; |
246 | uint32_t options; |
255 | XSizeHints szHint; |
247 | XSizeHints szHint; |
256 | rxvt_display *display; |
248 | rxvt_display *display; |
257 | rxvt_color *pix_colors; |
249 | rxvt_color *pix_colors; |
258 | rxvt_color *pix_colors_focused; |
250 | rxvt_color *pix_colors_focused; |
259 | #ifdef OFF_FOCUS_FADING |
251 | #ifdef OFF_FOCUS_FADING |
… | |
… | |
262 | short numpix_colors; |
254 | short numpix_colors; |
263 | Cursor TermWin_cursor; /* cursor for vt window */ |
255 | Cursor TermWin_cursor; /* cursor for vt window */ |
264 | int sb_shadow; /* scrollbar shadow width */ |
256 | int sb_shadow; /* scrollbar shadow width */ |
265 | rxvt_ptytty pty; |
257 | rxvt_ptytty pty; |
266 | int numlock_state; |
258 | int numlock_state; |
267 | line_t *row_buf; // all lines, scrollback + terminal, circular |
259 | line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf |
268 | line_t *drawn_buf; // text on screen |
260 | line_t *drawn_buf; // text on screen |
269 | line_t *temp_buf; // temporary buffer |
|
|
270 | line_t *swap_buf; // lines for swap buffer |
261 | line_t *swap_buf; // lines for swap buffer |
271 | char *tabs; /* per location: 1 == tab-stop */ |
262 | char *tabs; /* per location: 1 == tab-stop */ |
272 | screen_t screen; |
263 | screen_t screen; |
273 | screen_t swap; |
264 | screen_t swap; |
274 | selection_t selection; |
265 | selection_t selection; |
275 | }; |
266 | }; |
276 | |
267 | |
277 | void rxvt_init (); |
268 | void rxvt_init (); |
|
|
269 | bool rxvt_tainted (); |
278 | |
270 | |
279 | #endif /* _RXVTLIB_H_ */ |
271 | #endif /* _RXVTLIB_H_ */ |
280 | |
272 | |