From a975c3cb7b747cb51eac2c47e3baf29e122eb551 Mon Sep 17 00:00:00 2001 From: AskAlice Date: Thu, 3 Jun 2021 09:29:08 -0600 Subject: [PATCH] fix WSL carriage return --- spinner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spinner.go b/spinner.go index 7ed4187..9e8e697 100644 --- a/spinner.go +++ b/spinner.go @@ -405,7 +405,7 @@ func (s *Spinner) erase() { s.lastOutput = "" return } - fmt.Fprintf(s.Writer, "\r\033[K") // erases to end of line + fmt.Fprintf(s.Writer, "\033[K") // erases to end of line s.lastOutput = "" }