Skip to content

Commit

Permalink
Windows build fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Mar 5, 2024
1 parent 9bc5c63 commit 18256bb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions console_win.go
Expand Up @@ -930,14 +930,13 @@ func (s *cScreen) sendVtStyle(style Style) {
esc.WriteString(vtBlink)
}
if us != UnderlineStyleNone {
if uc == ColorReset {
esc.WriteString(vtUnderColorReset)
} else if uc.IsRGB() {
r, g, b := uc.RGB()
_, _ = fmt.Fprintf(esc, vtUnderColorRGB, int(r), int(g), int(b))
} else if uc.Valid() {
_, _ = fmt.Fprintf(esc, vtUnderColor, uc&0xff)
}
if uc == ColorReset {
esc.WriteString(vtUnderColorReset)
} else if uc.IsRGB() {
r, g, b := uc.RGB()
_, _ = fmt.Fprintf(esc, vtUnderColorRGB, int(r), int(g), int(b))
} else if uc.Valid() {
_, _ = fmt.Fprintf(esc, vtUnderColor, uc&0xff)
}

esc.WriteString(vtUnderline)
Expand All @@ -954,6 +953,7 @@ func (s *cScreen) sendVtStyle(style Style) {
esc.WriteString(vtDashedUnderline)
}
}

if attrs&AttrReverse != 0 {
esc.WriteString(vtReverse)
}
Expand Down

0 comments on commit 18256bb

Please sign in to comment.