Skip to content

Commit

Permalink
Merge pull request #120 from briandowns/fix_new_line
Browse files Browse the repository at this point in the history
revert previous change for windows
  • Loading branch information
briandowns committed Jun 21, 2021
2 parents 43683a1 + f506251 commit 7a99280
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 7a99280

Please sign in to comment.