update Writer godoc
Vladimir Bauer
3 years ago
| 16 | 16 | // ErrNotTTY not a TeleTYpewriter error. |
| 17 | 17 | var ErrNotTTY = errors.New("not a terminal") |
| 18 | 18 | |
| 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. | |
| 21 | 22 | type Writer struct { |
| 22 | 23 | *bytes.Buffer |
| 23 | 24 | out io.Writer |