Skip to content

How to use interactive TUI in subshell for scripts (similar to fzf)? #386

Answered by muesli
hay-kot asked this question in Q&A
Discussion options

You must be logged in to vote

We've worked on this a bit and you can now (speaking of the master branch, this isn't part of a release yet) initialize tea.Program with custom output & inputs, while maintaining proper color detection. Use WithOutput like this:

p := tea.NewProgram(m, tea.WithOutput(os.Stderr))

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@bashbunni
Comment options

Comment options

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