diff --git a/cwriter/writer.go b/cwriter/writer.go index 777b621..85c052c 100644 --- a/cwriter/writer.go +++ b/cwriter/writer.go @@ -17,8 +17,9 @@ // ErrNotTTY not a TeleTYpewriter error. var ErrNotTTY = errors.New("not a terminal") -// Writer is a buffered the writer that updates the terminal. The -// contents of writer will be flushed when Flush is called. +// Writer is a buffered terminal writer, which moves cursor N lines up +// on each flush except the first one, where N is a number of lines of +// a previous flush. type Writer struct { *bytes.Buffer out io.Writer