Fix resetting attributes for arch linux
This commit is contained in:
parent
a85c58bf12
commit
c044ba6076
@ -236,7 +236,9 @@ func (w *VT100Writer) SetColor(fg, bg Color, bold bool) {
|
|||||||
if bold {
|
if bold {
|
||||||
w.SetDisplayAttributes(fg, bg, DisplayBold)
|
w.SetDisplayAttributes(fg, bg, DisplayBold)
|
||||||
} else {
|
} else {
|
||||||
w.SetDisplayAttributes(fg, bg, DisplayDefaultFont, DisplayReset)
|
// If using `DisplayDefualt`, it will be broken in some environment.
|
||||||
|
// Details are https://github.com/c-bata/go-prompt/pull/85
|
||||||
|
w.SetDisplayAttributes(fg, bg, DisplayReset)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user