Skip to content

Commit

Permalink
chore(exec): disambiguate methods for restoring the terminal state vs…
Browse files Browse the repository at this point in the history
… input
  • Loading branch information
meowgorithm committed Apr 6, 2022
1 parent 8e380dc commit a5af798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tea.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a5af798

Please sign in to comment.