Codebase list golang-github-vbauerster-mpb / fbb19f8
Merge pull request #2 from fd0/fix-update Fix update for urxvt Vladimir Bauer authored 9 years ago GitHub committed 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2020
2121 func (w *Writer) clearLines() {
2222 for i := 0; i < w.lineCount; i++ {
23 fmt.Fprintf(w.out, "%c[%dA", ESC, 0) // move the cursor up
23 fmt.Fprintf(w.out, "%c[%dA", ESC, 1) // move the cursor up
2424 fmt.Fprintf(w.out, "%c[2K\r", ESC) // clear the line
2525 }
2626 }