CellAttributes bold/dim are mutually exclusive, so 'CSI 1 m' should turn off dim, and 'CSI 2 m' should turn off bold

This commit is contained in:
sawka 2022-06-03 13:54:34 -07:00
parent 955ebceacd
commit a4b5ae3acb
1 changed files with 2 additions and 0 deletions

View File

@ -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