Skip to content
Discussion options

You must be logged in to vote

Take a look at the following examples for executing a command, then eventually returning to the TUI:

With that being said, if the intention is to use bubbletea to invoke another tool, and not returning back to the TUI, you can use Program.ReleaseTerminal (from a goroutine or similar), though it may be better to use the tea.Quit command to exit from the model, so you don't have to do async operations to be able to call Program.ReleaseTerminal. Run() returns the final model, so you could do something like this (…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gaultierq
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