mark2web/vendor/github.com/gosuri/uilive/writer_posix.go
Sebastian Frank a781485c0a
Some checks failed
continuous-integration/drone/push Build is failing
no git submodules
2022-02-28 10:28:34 +01:00

16 lines
256 B
Go

// +build !windows
package uilive
import (
"fmt"
"strings"
)
// clear the line and move the cursor up
var clear = fmt.Sprintf("%c[%dA%c[2K", ESC, 1, ESC)
func (w *Writer) clearLines() {
_, _ = fmt.Fprint(w.Out, strings.Repeat(clear, w.lineCount))
}