aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-29 19:09:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-29 19:09:58 +0000
commit8723098cda90975cf17fae7a781b89de5422a584 (patch)
treeb90c76d4aac7004a9583d9cef3b13b8a185b6075 /csi.c
parentterminal: 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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/csi.c b/csi.c
index 8ffadb08..6b5c5808 100644
--- a/csi.c
+++ b/csi.c
@@ -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;