Watch 6 Star 6 Fork 2

ShirDon-廖显东 / uiprogressGoMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
uiprogress是用于实时更新终端输出的go库 spread retract

https://gitee.com/shirdonl/uiprogress.git

Clone or download
writer_posix.go 260 Bytes
Copy Edit Web IDE Raw Blame History
ShirDon-廖显东 authored 2019-12-01 20:12 . git commit
// +build !windows
package uiprogress
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))
}
Go
1
https://gitee.com/shirdonl/uiprogress.git
git@gitee.com:shirdonl/uiprogress.git
shirdonl
uiprogress
uiprogress
master

Help Search