… | |
… | |
253 | #define Opt_pastableTabs (1UL<<22) |
253 | #define Opt_pastableTabs (1UL<<22) |
254 | #define Opt_cursorUnderline (1UL<<23) |
254 | #define Opt_cursorUnderline (1UL<<23) |
255 | #if ENABLE_FRILLS |
255 | #if ENABLE_FRILLS |
256 | # define Opt_insecure (1UL<<24) // insecure esc sequences |
256 | # define Opt_insecure (1UL<<24) // insecure esc sequences |
257 | # define Opt_borderLess (1UL<<25) // mem borderless hints |
257 | # define Opt_borderLess (1UL<<25) // mem borderless hints |
|
|
258 | # define Opt_hold (1UL<<26) // hold window open after exit |
258 | #else |
259 | #else |
259 | # define Opt_insecure 0 |
260 | # define Opt_insecure 0 |
260 | # define Opt_borderLess 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 |
261 | #endif |
268 | #endif |
262 | /* place holder used for parsing command-line options */ |
269 | /* place holder used for parsing command-line options */ |
263 | #define Opt_Reverse (1UL<<30) |
270 | #define Opt_Reverse (1UL<<30) |
264 | #define Opt_Boolean (1UL<<31) |
271 | #define Opt_Boolean (1UL<<31) |
265 | |
272 | |
|
|
273 | #define OPTION(opt) (options && (opt)) |
266 | #define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ |
274 | #define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ |
267 | | Opt_jumpScroll | Opt_secondaryScreen \ |
275 | | Opt_jumpScroll | Opt_secondaryScreen \ |
268 | | Opt_pastableTabs) |
276 | | Opt_pastableTabs | Opt_intensityStyles) |
269 | |
277 | |
270 | /* ------------------------------------------------------------------------- */ |
278 | /* ------------------------------------------------------------------------- */ |
271 | |
279 | |
272 | typedef struct { |
280 | typedef struct { |
273 | short state; |
281 | short state; |