* feat(SIGINT): better handle interrupts
This PR introduces `Interrupt()`, `InterruptMsg{}`, and
`ErrInterrupted`.
Users can still handle "ctrl+c" as before, but instead of return
`tea.Quit`, they can return `tea.Interrupt`.
Later on, they can `errors.If(err, tea.ErrInterrupted)` and
`os.Exit(130)` if they want to.
* chore: fix unrelated typo
it was bothering me
* feat: allow to suspend bubbletea programs
closes#497closes#1053
* fix: typo
* fix: move things around, add example
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: block until CONT
* fix: ResumeMsg
* docs: improve example
* docs: one more example
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: examples tests
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>