Skip to content

Commit

Permalink
Fix unnecessary character output on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro committed May 26, 2021
1 parent 2cb1a33 commit b3141b5
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 b3141b5

Please sign in to comment.