Renderer comments

This commit is contained in:
Christian Rocha 2020-06-16 14:34:46 -04:00
parent 0eaea5cc5d
commit 3321ac12a9
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018

View File

@ -10,9 +10,18 @@ import (
)
type renderer struct {
Out io.Writer
Y int
Height int
// Out is the io.Writer to which we should render. Generally, this will
// be stdout.
Out io.Writer
// Y is the vertical offset of the rendered area in relation to the
// terminal window.
Y int
// Height is the number of rows to render.
Height int
// TerminalHeight is the total height of the terminal.
TerminalHeight int
}