Skip to content

Commit

Permalink
Merge pull request #117 from AskAlice/hotfix
Browse files Browse the repository at this point in the history
replace \033[K with \r in clear
  • Loading branch information
briandowns committed Jun 3, 2021
2 parents 2f0aa90 + 6c32347 commit c83d88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinner.go
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 c83d88d

Please sign in to comment.