aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/csi.c b/csi.c
index 04a15973..2d0f3c62 100644
--- a/csi.c
+++ b/csi.c
@@ -129,7 +129,13 @@ csi_sgr(struct terminal *term)
case 8: term->vt.attrs.conceal = true; break;
case 9: term->vt.attrs.strikethrough = true; break;
- case 21: break; /* double-underline, not implemented */
+ case 21:
+ term->vt.attrs.underline = true;
+ term->vt.underline.style = UNDERLINE_DOUBLE;
+ term->bits_affecting_ascii_printer.underline_style = true;
+ term_update_ascii_printer(term);
+ break;
+
case 22: term->vt.attrs.bold = term->vt.attrs.dim = false; break;
case 23: term->vt.attrs.italic = false; break;
case 24: {