restoreTerminalState restores the terminal to the state prior to running the Bubble Tea program.
()
| 34 | // restoreTerminalState restores the terminal to the state prior to running the |
| 35 | // Bubble Tea program. |
| 36 | func (p *Program) restoreTerminalState() error { |
| 37 | // Flush queued commands. |
| 38 | p.keepWriteErr(p.flush()) |
| 39 | |
| 40 | return p.restoreInput() |
| 41 | } |
| 42 | |
| 43 | // restoreInput restores the tty input to its original state. |
| 44 | func (p *Program) restoreInput() error { |
no test coverage detected