Skip to content

Commit 159932f

Browse files
authored
ANSI CSI 22m should also turn off bold (#338)
* ANSI CSI 22m should also turn off bold * CellAttributes bold/dim are mutually exclusive, so 'CSI 1 m' should turn off dim, and 'CSI 2 m' should turn off bold
1 parent 93392fc commit 159932f

File tree

1 file changed

+3
-0
lines changed
  • internal/app/darktile/termutil

1 file changed

+3
-0
lines changed

internal/app/darktile/termutil/csi.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,9 @@ func (t *Terminal) sgrSequenceHandler(params []string) bool {
911911
*attr = CellAttributes{}
912912
case "1", "01":
913913
t.GetActiveBuffer().getCursorAttr().bold = true
914+
t.GetActiveBuffer().getCursorAttr().dim = false
914915
case "2", "02":
916+
t.GetActiveBuffer().getCursorAttr().bold = false
915917
t.GetActiveBuffer().getCursorAttr().dim = true
916918
case "3", "03":
917919
t.GetActiveBuffer().getCursorAttr().italic = true
@@ -929,6 +931,7 @@ func (t *Terminal) sgrSequenceHandler(params []string) bool {
929931
t.GetActiveBuffer().getCursorAttr().bold = false
930932
case "22":
931933
t.GetActiveBuffer().getCursorAttr().dim = false
934+
t.GetActiveBuffer().getCursorAttr().bold = false
932935
case "23":
933936
t.GetActiveBuffer().getCursorAttr().italic = false
934937
case "24":

0 commit comments

Comments
 (0)