… | |
… | |
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 | |
216 | |
254 | #define SET_OPTION(opt) (options |= (opt)) |
217 | #define SET_OPTION(opt) (options |= (opt)) |
255 | #define CLR_OPTION(opt) (options &= ~(opt)) |
218 | #define CLR_OPTION(opt) (options &= ~(opt)) |
256 | #define OPTION(opt) (options & (opt)) |
219 | #define OPTION(opt) (options & (opt)) |
257 | #define OPTION_R(opt) (r->options & (opt)) |
220 | #define OPTION_R(opt) (r->options & (opt)) |