diff --git a/writer_posix.go b/writer_posix.go index 9da3286..bec6a1d 100644 --- a/writer_posix.go +++ b/writer_posix.go @@ -8,7 +8,7 @@ import ( func (w *Writer) clearLines() { for i := 0; i < w.lineCount; i++ { - fmt.Fprintf(w.Out, "%c[%dA", ESC, 0) // move the cursor up - fmt.Fprintf(w.Out, "%c[2K\r", ESC) // clear the line + fmt.Fprintf(w.Out, "%c[2K", ESC) // clear the line + fmt.Fprintf(w.Out, "%c[%dA", ESC, 1) // move the cursor up } }