fix for xterm
Vladimir Bauer
7 years ago
| 35 | 35 |
|
| 36 | 36 |
// Flush flushes the underlying buffer
|
| 37 | 37 |
func (w *Writer) Flush(lineCount int) (err error) {
|
| 38 | |
w.clearLines()
|
|
38 |
if w.lineCount > 0 {
|
|
39 |
w.clearLines()
|
|
40 |
}
|
| 39 | 41 |
w.lineCount = lineCount
|
| 40 | 42 |
_, err = w.buf.WriteTo(w.out)
|
| 41 | 43 |
return
|