From a5af79865ebe4e7bf3835d623bc1d76554f4ca63 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 6 Apr 2022 17:06:52 -0400 Subject: [PATCH] chore(exec): disambiguate methods for restoring the terminal state vs input --- tea.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tea.go b/tea.go index 482f3cd7cd..dd744a49f8 100644 --- a/tea.go +++ b/tea.go @@ -628,7 +628,7 @@ func (p *Program) shutdown(kill bool) { p.ExitAltScreen() p.DisableMouseCellMotion() p.DisableMouseAllMotion() - _ = p.restoreTerminal() + _ = p.restoreTerminalState() } // EnterAltScreen enters the alternate screen buffer, which consumes the entire @@ -721,7 +721,7 @@ func (p *Program) ReleaseTerminal() error { p.ExitAltScreen() time.Sleep(time.Millisecond * 10) // give the terminal a moment to catch up } - return p.restoreTerminal() + return p.restoreTerminalState() } // RestoreTerminal reinitializes the Program's input reader, restores the