mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Always hide and show the cursor during startup and shutdown
This commit is contained in:
9
tty.go
9
tty.go
@@ -19,17 +19,12 @@ func (p *Program) initTerminal() error {
|
||||
}
|
||||
}
|
||||
|
||||
if p.outputIsTTY {
|
||||
hideCursor(p.output)
|
||||
}
|
||||
|
||||
hideCursor(p.output)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p Program) restoreTerminal() error {
|
||||
if p.outputIsTTY {
|
||||
showCursor(p.output)
|
||||
}
|
||||
showCursor(p.output)
|
||||
|
||||
if p.console != nil {
|
||||
err := p.console.Reset()
|
||||
|
||||
Reference in New Issue
Block a user