Fix resetting attributes for arch linux

This commit is contained in:
c-bata 2018-10-20 14:28:43 +09:00
parent a85c58bf12
commit c044ba6076

View File

@ -236,7 +236,9 @@ func (w *VT100Writer) SetColor(fg, bg Color, bold bool) {
if bold {
w.SetDisplayAttributes(fg, bg, DisplayBold)
} 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
}