comment about lines param
Vladimir Bauer
3 years ago
| 6 | 6 |
)
|
| 7 | 7 |
|
| 8 | 8 |
// Flush flushes the underlying buffer.
|
|
9 |
// It's caller's responsibility to pass correct number of lines.
|
| 9 | 10 |
func (w *Writer) Flush(lines int) error {
|
| 10 | 11 |
_, err := w.WriteTo(w.out)
|
| 11 | 12 |
// some terminals interpret 'cursor up 0' as 'cursor up 1'
|
| 15 | 15 |
)
|
| 16 | 16 |
|
| 17 | 17 |
// Flush flushes the underlying buffer.
|
|
18 |
// It's caller's responsibility to pass correct number of lines.
|
| 18 | 19 |
func (w *Writer) Flush(lines int) error {
|
| 19 | 20 |
if w.lines > 0 {
|
| 20 | 21 |
err := w.clearLines(w.lines)
|