aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-16 11:25:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-16 11:25:45 +0000
commit770c5e97ddde7309e6f48a3ecc0068427d01792c (patch)
treeecd081bab87799c7aff7e67787c7ba050cc528d2 /csi.c
parentcsi: add back 'blink' attribute (diff)
csi: move 'dim' attribute from 'vt' to cell attributes
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/csi.c b/csi.c
index 8a5ecbb2..56630d90 100644
--- a/csi.c
+++ b/csi.c
@@ -111,7 +111,6 @@ static void
sgr_reset(struct terminal *term)
{
memset(&term->vt.attrs, 0, sizeof(term->vt.attrs));
- term->vt.dim = false;
term->vt.attrs.foreground = term->foreground;
term->vt.attrs.background = term->background;
}
@@ -160,7 +159,7 @@ csi_sgr(struct terminal *term)
break;
case 1: term->vt.attrs.bold = true; break;
- case 2: term->vt.dim = true; break;
+ case 2: term->vt.attrs.dim = true; break;
case 3: term->vt.attrs.italic = true; break;
case 4: term->vt.attrs.underline = true; break;
case 5: term->vt.attrs.blink = true; break;
@@ -170,7 +169,7 @@ csi_sgr(struct terminal *term)
case 9: term->vt.attrs.strikethrough = true; break;
case 21: term->vt.attrs.bold = false; break;
- case 22: term->vt.attrs.bold = term->vt.dim = false; break;
+ case 22: term->vt.attrs.bold = term->vt.attrs.dim = false; break;
case 23: term->vt.attrs.italic = false; break;
case 24: term->vt.attrs.underline = false; break;
case 25: term->vt.attrs.blink = false; break;