chore: don't use deprecated methods internally

This commit is contained in:
Christian Muehlhaeuser 2022-10-09 05:29:35 +02:00
parent a11ff932fa
commit 1c3b792596
1 changed files with 1 additions and 2 deletions

3
tea.go
View File

@ -566,13 +566,12 @@ func (p *Program) RestoreTerminal() error {
if err := p.initTerminal(); err != nil {
return err
}
if err := p.initCancelReader(); err != nil {
return err
}
if p.altScreenWasActive {
p.EnterAltScreen()
p.renderer.enterAltScreen()
}
go p.Send(repaintMsg{})