From 01dd88fd1d7ac5b3e8a05ca640b5af45edfb8743 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Thu, 29 Jul 2021 17:41:36 -0400 Subject: [PATCH] Always hide and show the cursor during startup and shutdown --- tty.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tty.go b/tty.go index c72370f..c8cf968 100644 --- a/tty.go +++ b/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()