Skip to content

Commit

Permalink
Merge pull request #97 from blakewatters/fix-iterm-output
Browse files Browse the repository at this point in the history
Fix output on iTerm in macOS
  • Loading branch information
briandowns committed May 2, 2020
2 parents 5181798 + 2aefe39 commit 2123868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinner.go
Expand Up @@ -408,7 +408,7 @@ func (s *Spinner) erase() {
fmt.Fprintf(s.Writer, c)
}
}
fmt.Fprintf(s.Writer, "\033[K") // erases to end of line
fmt.Fprintf(s.Writer, "\r\033[K") // erases to end of line
s.lastOutput = ""
}

Expand Down

0 comments on commit 2123868

Please sign in to comment.