This commit is contained in:
Christian Rocha
2020-06-19 19:02:14 -04:00
parent 0c1781fbb3
commit cc480dd2f3

View File

@@ -26,8 +26,8 @@ type Model struct {
// a lot of ANSI escape codes you may see improved rendering in certain
// terminals with this enabled.
//
// This should only be used in program occupying the entire terminal width,
// usually via the alternate screen buffer.
// This should only be used in program occupying the entire terminal,
// which is usually via the alternate screen buffer.
HighPerformanceRendering bool
lines []string
@@ -41,7 +41,8 @@ func NewModel(width, height int) Model {
}
}
func (m Model) SetSize(yPos int, width, height int) {
// TODO: do we really need this?
func (m Model) SetSize(yPos, width, height int) {
m.YPosition = yPos
m.Width = width
m.Height = height