Kill stops the program immediately and restores the former terminal state. The final render that you would normally see when quitting will be skipped. [program.Run] returns a [ErrProgramKilled] error.
()
| 1202 | // The final render that you would normally see when quitting will be skipped. |
| 1203 | // [program.Run] returns a [ErrProgramKilled] error. |
| 1204 | func (p *Program) Kill() { |
| 1205 | p.shutdown(true) |
| 1206 | } |
| 1207 | |
| 1208 | // Wait waits/blocks until the underlying Program finished shutting down. |
| 1209 | func (p *Program) Wait() { |