diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-06-29 19:09:58 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-06-29 19:09:58 +0000 |
| commit | 8723098cda90975cf17fae7a781b89de5422a584 (patch) | |
| tree | b90c76d4aac7004a9583d9cef3b13b8a185b6075 /csi.c | |
| parent | terminal: move col/row count, cell width/height and scroll region to terminal (diff) | |
terminal: move fore/background colors from grid to terminal
Diffstat (limited to 'csi.c')
| -rw-r--r-- | csi.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -92,8 +92,8 @@ sgr_reset(struct terminal *term) { memset(&term->vt.attrs, 0, sizeof(term->vt.attrs)); term->vt.dim = false; - term->vt.attrs.foreground = term->grid.foreground; - term->vt.attrs.background = term->grid.background; + term->vt.attrs.foreground = term->foreground; + term->vt.attrs.background = term->background; } static bool @@ -172,7 +172,7 @@ csi_sgr(struct terminal *term) break; } case 39: - term->vt.attrs.foreground = term->grid.foreground; + term->vt.attrs.foreground = term->foreground; term->vt.attrs.have_foreground = false; break; @@ -218,7 +218,7 @@ csi_sgr(struct terminal *term) break; } case 49: - term->vt.attrs.background = term->grid.background; + term->vt.attrs.background = term->background; term->vt.attrs.have_background = false; break; |
