Fix a bug where left area on the first line was not always cleared

This commit is contained in:
Christian Rocha
2020-06-17 14:28:08 -04:00
parent debaf312f7
commit 8539cfcf8c
3 changed files with 16 additions and 4 deletions

6
tea.go
View File

@@ -197,14 +197,12 @@ func (p *Program) Start() error {
}
}
// AltScreen exits the altscreen. This is just a wrapper around the termenv
// function.
// AltScreen enters the alternate screen buffer.
func AltScreen() {
termenv.AltScreen()
}
// ExitAltScreen exits the altscreen. This is just a wrapper around the termenv
// function.
// ExitAltScreen exits the alternate screen buffer.
func ExitAltScreen() {
termenv.ExitAltScreen()
}