Lines Matching refs:pen
129 VTermColor *colp = (attr == VTERM_ATTR_BACKGROUND) ? &state->pen.bg : &state->pen.fg; in set_pen_col_ansi()
148 state->pen.bold = 0; setpenattr_bool(state, VTERM_ATTR_BOLD, 0); in vterm_state_resetpen()
149 state->pen.underline = 0; setpenattr_int( state, VTERM_ATTR_UNDERLINE, 0); in vterm_state_resetpen()
150 state->pen.italic = 0; setpenattr_bool(state, VTERM_ATTR_ITALIC, 0); in vterm_state_resetpen()
151 state->pen.blink = 0; setpenattr_bool(state, VTERM_ATTR_BLINK, 0); in vterm_state_resetpen()
152 state->pen.reverse = 0; setpenattr_bool(state, VTERM_ATTR_REVERSE, 0); in vterm_state_resetpen()
153 state->pen.strike = 0; setpenattr_bool(state, VTERM_ATTR_STRIKE, 0); in vterm_state_resetpen()
154 state->pen.font = 0; setpenattr_int( state, VTERM_ATTR_FONT, 0); in vterm_state_resetpen()
158 …state->pen.fg = state->default_fg; setpenattr_col(state, VTERM_ATTR_FOREGROUND, state->default_fg… in vterm_state_resetpen()
159 …state->pen.bg = state->default_bg; setpenattr_col(state, VTERM_ATTR_BACKGROUND, state->default_bg… in vterm_state_resetpen()
165 state->saved.pen = state->pen; in vterm_state_savepen()
168 state->pen = state->saved.pen; in vterm_state_savepen()
170 setpenattr_bool(state, VTERM_ATTR_BOLD, state->pen.bold); in vterm_state_savepen()
171 setpenattr_int( state, VTERM_ATTR_UNDERLINE, state->pen.underline); in vterm_state_savepen()
172 setpenattr_bool(state, VTERM_ATTR_ITALIC, state->pen.italic); in vterm_state_savepen()
173 setpenattr_bool(state, VTERM_ATTR_BLINK, state->pen.blink); in vterm_state_savepen()
174 setpenattr_bool(state, VTERM_ATTR_REVERSE, state->pen.reverse); in vterm_state_savepen()
175 setpenattr_bool(state, VTERM_ATTR_STRIKE, state->pen.strike); in vterm_state_savepen()
176 setpenattr_int( state, VTERM_ATTR_FONT, state->pen.font); in vterm_state_savepen()
177 setpenattr_col( state, VTERM_ATTR_FOREGROUND, state->pen.fg); in vterm_state_savepen()
178 setpenattr_col( state, VTERM_ATTR_BACKGROUND, state->pen.bg); in vterm_state_savepen()
230 state->pen.bold = 1; in vterm_state_setpen()
233 set_pen_col_ansi(state, VTERM_ATTR_FOREGROUND, state->fg_index + (state->pen.bold ? 8 : 0)); in vterm_state_setpen()
237 state->pen.italic = 1; in vterm_state_setpen()
242 state->pen.underline = 1; in vterm_state_setpen()
247 state->pen.blink = 1; in vterm_state_setpen()
252 state->pen.reverse = 1; in vterm_state_setpen()
257 state->pen.strike = 1; in vterm_state_setpen()
263 state->pen.font = CSI_ARG(args[argi]) - 10; in vterm_state_setpen()
264 setpenattr_int(state, VTERM_ATTR_FONT, state->pen.font); in vterm_state_setpen()
268 state->pen.underline = 2; in vterm_state_setpen()
273 state->pen.bold = 0; in vterm_state_setpen()
278 state->pen.italic = 0; in vterm_state_setpen()
283 state->pen.underline = 0; in vterm_state_setpen()
288 state->pen.blink = 0; in vterm_state_setpen()
293 state->pen.reverse = 0; in vterm_state_setpen()
298 state->pen.strike = 0; in vterm_state_setpen()
306 if(state->pen.bold && state->bold_is_highbright) in vterm_state_setpen()
315 …colour(state, CSI_ARG(args[argi+1]), args+argi+2, argcount-argi-2, &state->pen.fg, &state->fg_inde… in vterm_state_setpen()
316 setpenattr_col(state, VTERM_ATTR_FOREGROUND, state->pen.fg); in vterm_state_setpen()
321 state->pen.fg = state->default_fg; in vterm_state_setpen()
322 setpenattr_col(state, VTERM_ATTR_FOREGROUND, state->pen.fg); in vterm_state_setpen()
336 …colour(state, CSI_ARG(args[argi+1]), args+argi+2, argcount-argi-2, &state->pen.bg, &state->bg_inde… in vterm_state_setpen()
337 setpenattr_col(state, VTERM_ATTR_BACKGROUND, state->pen.bg); in vterm_state_setpen()
342 state->pen.bg = state->default_bg; in vterm_state_setpen()
343 setpenattr_col(state, VTERM_ATTR_BACKGROUND, state->pen.bg); in vterm_state_setpen()
376 if(state->pen.bold) in vterm_state_getpen()
379 if(state->pen.italic) in vterm_state_getpen()
382 if(state->pen.underline == 1) in vterm_state_getpen()
385 if(state->pen.blink) in vterm_state_getpen()
388 if(state->pen.reverse) in vterm_state_getpen()
391 if(state->pen.strike) in vterm_state_getpen()
394 if(state->pen.font) in vterm_state_getpen()
395 args[argi++] = 10 + state->pen.font; in vterm_state_getpen()
397 if(state->pen.underline == 2) in vterm_state_getpen()
427 val->boolean = state->pen.bold; in vterm_state_get_penattr()
431 val->number = state->pen.underline; in vterm_state_get_penattr()
435 val->boolean = state->pen.italic; in vterm_state_get_penattr()
439 val->boolean = state->pen.blink; in vterm_state_get_penattr()
443 val->boolean = state->pen.reverse; in vterm_state_get_penattr()
447 val->boolean = state->pen.strike; in vterm_state_get_penattr()
451 val->number = state->pen.font; in vterm_state_get_penattr()
455 val->color = state->pen.fg; in vterm_state_get_penattr()
459 val->color = state->pen.bg; in vterm_state_get_penattr()