Codebase list golang-github-vbauerster-mpb / e1962ce
update Writer godoc Vladimir Bauer 3 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1616 // ErrNotTTY not a TeleTYpewriter error.
1717 var ErrNotTTY = errors.New("not a terminal")
1818
19 // Writer is a buffered the writer that updates the terminal. The
20 // contents of writer will be flushed when Flush is called.
19 // Writer is a buffered terminal writer, which moves cursor N lines up
20 // on each flush except the first one, where N is a number of lines of
21 // a previous flush.
2122 type Writer struct {
2223 *bytes.Buffer
2324 out io.Writer