diff --git a/viewport/renderer.go b/viewport/renderer.go index c9927e0..2f1a9e6 100644 --- a/viewport/renderer.go +++ b/viewport/renderer.go @@ -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 }