Skip to content

Commit

Permalink
replace \033[K with \r in clear
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlice committed Jun 3, 2021
1 parent a975c3c commit 6c32347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ func (s *Spinner) erase() {
s.lastOutput = ""
return
}
fmt.Fprintf(s.Writer, "\033[K") // erases to end of line
fmt.Fprintf(s.Writer, "\r") // erases to end of line
s.lastOutput = ""
}

Expand Down

0 comments on commit 6c32347

Please sign in to comment.