Skip to content

Commit

Permalink
win fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Mar 7, 2024
1 parent 1bdce1e commit b190709
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions console_win.go
Expand Up @@ -442,8 +442,8 @@ func (s *cScreen) showCursor() {
if (s.cursorColor == ColorReset) {
s.emitVtString(vtCursorColorReset)
} else if s.cursorColor.Valid() {
r, g, b := s.cursorColor.TrueColor().RGB()
s.emitVtString(vtCursorColorRGB, r, g, b)
r, g, b := s.cursorColor.RGB()
s.emitVtString(fmt.Sprintf(vtCursorColorRGB, r, g, b))
}
} else {
s.setCursorInfo(&cursorInfo{size: 100, visible: 1})
Expand All @@ -468,11 +468,12 @@ func (s *cScreen) ShowCursor(x, y int) {
s.Unlock()
}

func (s *cScreen) SetCursor(cs CursorStyle, _ Color) {
func (s *cScreen) SetCursor(cs CursorStyle, cc Color) {
s.Lock()
if !s.fini {
if _, ok := vtCursorStyles[cs]; ok {
s.cursorStyle = cs
s.cursorColor = cc
s.doCursor()
}
}
Expand Down

0 comments on commit b190709

Please sign in to comment.