From a4b5ae3acbab48b3daa20d162e1e645bf7bab203 Mon Sep 17 00:00:00 2001 From: sawka Date: Fri, 3 Jun 2022 13:54:34 -0700 Subject: [PATCH] CellAttributes bold/dim are mutually exclusive, so 'CSI 1 m' should turn off dim, and 'CSI 2 m' should turn off bold --- internal/app/darktile/termutil/csi.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/app/darktile/termutil/csi.go b/internal/app/darktile/termutil/csi.go index 271f719..aa5569c 100644 --- a/internal/app/darktile/termutil/csi.go +++ b/internal/app/darktile/termutil/csi.go @@ -911,7 +911,9 @@ func (t *Terminal) sgrSequenceHandler(params []string) bool { *attr = CellAttributes{} case "1", "01": t.GetActiveBuffer().getCursorAttr().bold = true + t.GetActiveBuffer().getCursorAttr().dim = false case "2", "02": + t.GetActiveBuffer().getCursorAttr().bold = false t.GetActiveBuffer().getCursorAttr().dim = true case "3", "03": t.GetActiveBuffer().getCursorAttr().italic = true