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
This commit is contained in:
parent
93392fc149
commit
159932ff3e
|
@ -911,7 +911,9 @@ func (t *Terminal) sgrSequenceHandler(params []string) bool {
|
||||||
*attr = CellAttributes{}
|
*attr = CellAttributes{}
|
||||||
case "1", "01":
|
case "1", "01":
|
||||||
t.GetActiveBuffer().getCursorAttr().bold = true
|
t.GetActiveBuffer().getCursorAttr().bold = true
|
||||||
|
t.GetActiveBuffer().getCursorAttr().dim = false
|
||||||
case "2", "02":
|
case "2", "02":
|
||||||
|
t.GetActiveBuffer().getCursorAttr().bold = false
|
||||||
t.GetActiveBuffer().getCursorAttr().dim = true
|
t.GetActiveBuffer().getCursorAttr().dim = true
|
||||||
case "3", "03":
|
case "3", "03":
|
||||||
t.GetActiveBuffer().getCursorAttr().italic = true
|
t.GetActiveBuffer().getCursorAttr().italic = true
|
||||||
|
@ -929,6 +931,7 @@ func (t *Terminal) sgrSequenceHandler(params []string) bool {
|
||||||
t.GetActiveBuffer().getCursorAttr().bold = false
|
t.GetActiveBuffer().getCursorAttr().bold = false
|
||||||
case "22":
|
case "22":
|
||||||
t.GetActiveBuffer().getCursorAttr().dim = false
|
t.GetActiveBuffer().getCursorAttr().dim = false
|
||||||
|
t.GetActiveBuffer().getCursorAttr().bold = false
|
||||||
case "23":
|
case "23":
|
||||||
t.GetActiveBuffer().getCursorAttr().italic = false
|
t.GetActiveBuffer().getCursorAttr().italic = false
|
||||||
case "24":
|
case "24":
|
||||||
|
|
Loading…
Reference in New Issue