This commit is contained in:
Christian Rocha 2020-06-19 19:02:14 -04:00
parent 0c1781fbb3
commit cc480dd2f3
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018

View File

@ -26,8 +26,8 @@ type Model struct {
// a lot of ANSI escape codes you may see improved rendering in certain // a lot of ANSI escape codes you may see improved rendering in certain
// terminals with this enabled. // terminals with this enabled.
// //
// This should only be used in program occupying the entire terminal width, // This should only be used in program occupying the entire terminal,
// usually via the alternate screen buffer. // which is usually via the alternate screen buffer.
HighPerformanceRendering bool HighPerformanceRendering bool
lines []string 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.YPosition = yPos
m.Width = width m.Width = width
m.Height = height m.Height = height