Codebase list golang-github-vbauerster-mpb / 2fea2fa cwriter / writer_posix.go
2fea2fa

Tree @2fea2fa (Download .tar.gz)

writer_posix.go @2fea2faraw · history · blame

// +build !windows

package cwriter

import (
	"io"
	"strings"
)

func (w *Writer) clearLines() error {
	_, err := io.WriteString(w.out, strings.Repeat(clearCursorAndLine, w.lineCount))
	return err
}