Quit is a convenience function for quitting Bubble Tea programs. Use it when you need to shut down a Bubble Tea program from the outside. If you wish to quit from within a Bubble Tea program use the Quit command. If the program is not running this will be a no-op, so it's safe to call if the progr
()
| 1195 | // If the program is not running this will be a no-op, so it's safe to call |
| 1196 | // if the program is unstarted or has already exited. |
| 1197 | func (p *Program) Quit() { |
| 1198 | p.Send(Quit()) |
| 1199 | } |
| 1200 | |
| 1201 | // Kill stops the program immediately and restores the former terminal state. |
| 1202 | // The final render that you would normally see when quitting will be skipped. |