… | |
… | |
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) |
209 | enum { |
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 | #if POINTER_BLANK |
|
|
228 | # define Opt_pointerBlank (1UL<<18) |
|
|
229 | #else |
|
|
230 | # define Opt_pointerBlank 0 |
|
|
231 | #endif |
|
|
232 | #define Opt_cursorBlink (1UL<<19) |
|
|
233 | #define Opt_secondaryScreen (1UL<<20) |
|
|
234 | #define Opt_secondaryScroll (1UL<<21) |
|
|
235 | #define Opt_pastableTabs (1UL<<22) |
|
|
236 | #define Opt_cursorUnderline (1UL<<23) |
|
|
237 | #if ENABLE_FRILLS |
|
|
238 | # define Opt_insecure (1UL<<24) // insecure esc sequences |
|
|
239 | # define Opt_borderLess (1UL<<25) // mwm borderless hints |
|
|
240 | # define Opt_hold (1UL<<26) // hold window open after exit |
|
|
241 | # define Opt_skipBuiltinGlyphs (1UL<<27) // do not use internal glyphs |
|
|
242 | #else |
|
|
243 | # define Opt_insecure 0 |
|
|
244 | # define Opt_borderLess 0 |
|
|
245 | # define Opt_hold 0 |
|
|
246 | # define Opt_skipBuiltinGlyphs 0 |
|
|
247 | #endif |
|
|
248 | #if ENABLE_STYLES |
|
|
249 | # define Opt_intensityStyles (1UL<<28) // font styles imply intensity |
|
|
250 | #else |
|
|
251 | # define Opt_intensityStyles 0 |
|
|
252 | #endif |
|
|
253 | |
|
|
254 | #define SET_OPTION(opt) (options |= (opt)) |
|
|
255 | #define CLR_OPTION(opt) (options &= ~(opt)) |
|
|
256 | #define OPTION(opt) (options & (opt)) |
|
|
257 | #define OPTION_R(opt) (r->options & (opt)) |
|
|
258 | #define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ |
|
|
259 | | Opt_jumpScroll | Opt_secondaryScreen \ |
|
|
260 | | Opt_pastableTabs | Opt_intensityStyles) |
|
|
261 | |
216 | |
262 | /* ------------------------------------------------------------------------- */ |
217 | /* ------------------------------------------------------------------------- */ |
263 | |
218 | |
264 | typedef struct { |
219 | typedef struct { |
265 | short state; |
220 | short state; |
… | |
… | |
286 | } scrollBar_t; |
241 | } scrollBar_t; |
287 | |
242 | |
288 | struct rxvt_vars : TermWin_t { |
243 | struct rxvt_vars : TermWin_t { |
289 | scrollBar_t scrollBar; |
244 | scrollBar_t scrollBar; |
290 | menuBar_t menuBar; |
245 | menuBar_t menuBar; |
291 | unsigned long options; |
246 | uint32_t options; |
292 | XSizeHints szHint; |
247 | XSizeHints szHint; |
293 | rxvt_display *display; |
248 | rxvt_display *display; |
294 | rxvt_color *pix_colors; |
249 | rxvt_color *pix_colors; |
295 | rxvt_color *pix_colors_focused; |
250 | rxvt_color *pix_colors_focused; |
296 | #ifdef OFF_FOCUS_FADING |
251 | #ifdef OFF_FOCUS_FADING |
… | |
… | |
310 | screen_t swap; |
265 | screen_t swap; |
311 | selection_t selection; |
266 | selection_t selection; |
312 | }; |
267 | }; |
313 | |
268 | |
314 | void rxvt_init (); |
269 | void rxvt_init (); |
|
|
270 | bool rxvt_tainted (); |
315 | |
271 | |
316 | #endif /* _RXVTLIB_H_ */ |
272 | #endif /* _RXVTLIB_H_ */ |
317 | |
273 | |