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