Skip to content

Commit

Permalink
Merge pull request #115 from Dreamacro/fix-110
Browse files Browse the repository at this point in the history
Fix unnecessary character output on macOS
  • Loading branch information
briandowns committed May 26, 2021
2 parents 2cb1a33 + b3141b5 commit f42c2c3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions spinner.go
Expand Up @@ -396,9 +396,6 @@ func (s *Spinner) erase() {
s.lastOutput = ""
return
}
for _, c := range []string{"\b", "\127", "\b", "\033[K"} { // "\033[K" for macOS Terminal
fmt.Fprint(s.Writer, strings.Repeat(c, n))
}
fmt.Fprintf(s.Writer, "\r\033[K") // erases to end of line
s.lastOutput = ""
}
Expand Down

0 comments on commit f42c2c3

Please sign in to comment.