Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert previous change for windows #120

Merged
merged 1 commit into from Jun 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions spinner.go
Expand Up @@ -339,7 +339,7 @@ func (s *Spinner) Stop() {
if s.FinalMSG != "" {
if isWindowsTerminalOnWindows {
fmt.Fprint(s.Writer, "\r", s.FinalMSG)
}else{
} else {
fmt.Fprint(s.Writer, s.FinalMSG)
}
}
Expand Down Expand Up @@ -405,7 +405,7 @@ func (s *Spinner) erase() {
s.lastOutput = ""
return
}
fmt.Fprintf(s.Writer, "\r") // erases to end of line
fmt.Fprintf(s.Writer, "\033[K") // erases to end of line
s.lastOutput = ""
}

Expand Down