Always hide and show the cursor during startup and shutdown

This commit is contained in:
Christian Rocha 2021-07-29 17:41:36 -04:00
parent e1ca585c16
commit 01dd88fd1d
1 changed files with 2 additions and 7 deletions

5
tty.go
View File

@ -19,17 +19,12 @@ func (p *Program) initTerminal() error {
}
}
if p.outputIsTTY {
hideCursor(p.output)
}
return nil
}
func (p Program) restoreTerminal() error {
if p.outputIsTTY {
showCursor(p.output)
}
if p.console != nil {
err := p.console.Reset()