… | |
… | |
186 | wchar_t *text; /* selected text */ |
186 | wchar_t *text; /* selected text */ |
187 | unsigned int len; /* length of selected text */ |
187 | unsigned int len; /* length of selected text */ |
188 | unsigned int screen; /* screen being used */ |
188 | unsigned int screen; /* screen being used */ |
189 | unsigned int clicks; /* number of clicks */ |
189 | unsigned int clicks; /* number of clicks */ |
190 | selection_op_t op; /* current operation */ |
190 | selection_op_t op; /* current operation */ |
191 | bool rect; /* rectangluar selection? */ |
191 | bool rect; /* rectangular selection? */ |
192 | row_col_t beg; /* beginning of selection <= mark */ |
192 | row_col_t beg; /* beginning of selection <= mark */ |
193 | row_col_t mark; /* point of initial click <= end */ |
193 | row_col_t mark; /* point of initial click <= end */ |
194 | row_col_t end; /* one character past end point */ |
194 | row_col_t end; /* one character past end point */ |
195 | } selection_t; |
195 | } selection_t; |
196 | |
196 | |
… | |
… | |
204 | #define Screen_WrapNext (1<<4) /* need to wrap for next char? */ |
204 | #define Screen_WrapNext (1<<4) /* need to wrap for next char? */ |
205 | #define Screen_DefaultFlags (Screen_VisibleCursor | Screen_Autowrap) |
205 | #define Screen_DefaultFlags (Screen_VisibleCursor | Screen_Autowrap) |
206 | |
206 | |
207 | /* rxvt_vars.options */ |
207 | /* rxvt_vars.options */ |
208 | enum { |
208 | enum { |
209 | # define def(name,idx) Opt_ ## name = 1UL << (idx), |
209 | # define def(name,idx) Opt_ ## name = idx, |
210 | # define nodef(name) Opt_ ## name = 0, |
210 | # define nodef(name) Opt_ ## name = 0, |
211 | # include "optinc.h" |
211 | # include "optinc.h" |
212 | # undef nodef |
212 | # undef nodef |
213 | # undef def |
213 | # undef def |
|
|
214 | Opt_count |
214 | }; |
215 | }; |
215 | |
216 | |
216 | /* ------------------------------------------------------------------------- */ |
217 | /* ------------------------------------------------------------------------- */ |
217 | |
218 | |
218 | typedef struct { |
219 | typedef struct { |
… | |
… | |
233 | void setDn() { state = 'D'; } |
234 | void setDn() { state = 'D'; } |
234 | } scrollBar_t; |
235 | } scrollBar_t; |
235 | |
236 | |
236 | struct rxvt_vars : TermWin_t { |
237 | struct rxvt_vars : TermWin_t { |
237 | scrollBar_t scrollBar; |
238 | scrollBar_t scrollBar; |
238 | uint32_t options; |
239 | uint8_t options[(Opt_count + 7) >> 3]; |
239 | XSizeHints szHint; |
240 | XSizeHints szHint; |
240 | rxvt_color *pix_colors; |
241 | rxvt_color *pix_colors; |
241 | rxvt_color *pix_colors_focused; |
242 | rxvt_color *pix_colors_focused; |
242 | #ifdef OFF_FOCUS_FADING |
243 | #ifdef OFF_FOCUS_FADING |
243 | rxvt_color *pix_colors_unfocused; |
244 | rxvt_color *pix_colors_unfocused; |