Skip to content

Commit

Permalink
revert previous change for windows
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Downs <brian.downs@gmail.com>
  • Loading branch information
briandowns committed Jun 21, 2021
1 parent 43683a1 commit f506251
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

1 comment on commit f506251

@HarryMichal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change does not affect Windows but Linux.

Please sign in to comment.