test: quit/kill model after the first render

This commit is contained in:
Christian Muehlhaeuser
2022-09-23 00:40:18 +02:00
parent 2fe97e07d0
commit 5d1ffa74cd
2 changed files with 52 additions and 5 deletions

2
tty.go
View File

@@ -26,7 +26,7 @@ func (p *Program) initTerminal() error {
// restoreTerminalState restores the terminal to the state prior to running the
// Bubble Tea program.
func (p Program) restoreTerminalState() error {
func (p *Program) restoreTerminalState() error {
p.output.ShowCursor()
if p.console != nil {