Skip to content

Commit

Permalink
Using octal
Browse files Browse the repository at this point in the history
  • Loading branch information
Chance-fyi committed Apr 19, 2024
1 parent 49d4137 commit f79e001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinner_printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (s *SpinnerPrinter) SetStartedAt(t time.Time) {
func (s *SpinnerPrinter) UpdateText(text string) {
s.Text = text
if !RawOutput {
Fprinto(s.Writer, "\x1b[K"+s.Style.Sprint(s.currentSequence)+" "+s.MessageStyle.Sprint(s.Text))
Fprinto(s.Writer, "\033[K"+s.Style.Sprint(s.currentSequence)+" "+s.MessageStyle.Sprint(s.Text))
} else {
Fprintln(s.Writer, s.Text)
}
Expand Down

0 comments on commit f79e001

Please sign in to comment.