diff --git a/cwriter/writer_posix.go b/cwriter/writer_posix.go index 6a08d6c..2a7995a 100644 --- a/cwriter/writer_posix.go +++ b/cwriter/writer_posix.go @@ -21,7 +21,7 @@ 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[%dA", ESC, 1) // move the cursor up fmt.Fprintf(w.out, "%c[2K\r", ESC) // clear the line } }