Windows build fix.

This commit is contained in:
Garrett D'Amore 2024-03-05 00:11:19 -08:00
parent 9bc5c636ae
commit 18256bb692
1 changed files with 8 additions and 8 deletions

View File

@ -930,14 +930,13 @@ func (s *cScreen) sendVtStyle(style Style) {
esc.WriteString(vtBlink) esc.WriteString(vtBlink)
} }
if us != UnderlineStyleNone { if us != UnderlineStyleNone {
if uc == ColorReset { if uc == ColorReset {
esc.WriteString(vtUnderColorReset) esc.WriteString(vtUnderColorReset)
} else if uc.IsRGB() { } else if uc.IsRGB() {
r, g, b := uc.RGB() r, g, b := uc.RGB()
_, _ = fmt.Fprintf(esc, vtUnderColorRGB, int(r), int(g), int(b)) _, _ = fmt.Fprintf(esc, vtUnderColorRGB, int(r), int(g), int(b))
} else if uc.Valid() { } else if uc.Valid() {
_, _ = fmt.Fprintf(esc, vtUnderColor, uc&0xff) _, _ = fmt.Fprintf(esc, vtUnderColor, uc&0xff)
}
} }
esc.WriteString(vtUnderline) esc.WriteString(vtUnderline)
@ -954,6 +953,7 @@ func (s *cScreen) sendVtStyle(style Style) {
esc.WriteString(vtDashedUnderline) esc.WriteString(vtDashedUnderline)
} }
} }
if attrs&AttrReverse != 0 { if attrs&AttrReverse != 0 {
esc.WriteString(vtReverse) esc.WriteString(vtReverse)
} }