Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce withRethrowPanics option #883

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nervo
Copy link

@nervo nervo commented Dec 11, 2023

This option makes bubbletea silently recovers panics, shutdown itself, and rethrows panics for a possible handling at a higher/lower level.

In my use case, i would like to centralize the panics, not being "polluted" by terminal outputs. As the bubbletea shutdown method is not public, and is the only way to gracefully restore the terminal, the only way seems to add such an option.

Pleas note that i'm not fully satisfied by the option name withRethrowPanics, i'm totally open to suggestions :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant