Codebase list golang-github-vbauerster-mpb / 71adc21
comment about lines param Vladimir Bauer 3 years ago
2 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
66 )
77
88 // Flush flushes the underlying buffer.
9 // It's caller's responsibility to pass correct number of lines.
910 func (w *Writer) Flush(lines int) error {
1011 _, err := w.WriteTo(w.out)
1112 // some terminals interpret 'cursor up 0' as 'cursor up 1'
1515 )
1616
1717 // Flush flushes the underlying buffer.
18 // It's caller's responsibility to pass correct number of lines.
1819 func (w *Writer) Flush(lines int) error {
1920 if w.lines > 0 {
2021 err := w.clearLines(w.lines)