Merge pull request #2 from fd0/fix-update
Fix update for urxvt
Vladimir Bauer authored 9 years ago
GitHub committed 9 years ago
| 20 | 20 |
|
| 21 | 21 |
func (w *Writer) clearLines() {
|
| 22 | 22 |
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
|
| 24 | 24 |
fmt.Fprintf(w.out, "%c[2K\r", ESC) // clear the line
|
| 25 | 25 |
}
|
| 26 | 26 |
}
|