Skip to content

Why does Ctrl-C not terminate the app when the form is used as as a BubbleTea model #273

Answered by maaslalani
jbcpollak asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, this is intentional as when running the form in bubble tea you may not want to quit the app if the user presses ctrl+c, when running the form in stand alone mode however you would want to cancel the form. This is controlled here:

https://github.com/charmbracelet/huh/blob/main/form.go#L558-L561

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jbcpollak
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants