diff --git a/tea.go b/tea.go index ab221da..e62d4c3 100644 --- a/tea.go +++ b/tea.go @@ -309,7 +309,9 @@ func (p *Program) Start() error { if err != nil { return err } - defer p.restoreTerminal() + defer func() { + _ = p.restoreTerminal() + }() } // Initialize program