Question: How to do an interactive shell input like bash? #1173
Unanswered
ZephyrPhrost
asked this question in
Q&A
Replies: 2 comments 1 reply
-
🙏 |
Beta Was this translation helpful? Give feedback.
1 reply
-
You're going to want to print output above the interactive portion of the program managed by Bubble Tea so it flows into the terminal's scroll back butter. For that have a look at the Basically: switch msg {
case somethingWasExecuted:
return m, tea.Println("> some output")
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I'm trying to do an interactive shell like it's was possible with: https://github.com/c-bata/go-prompt
but I'm struggling a bit with the view model:
I wonder if there is an example with an interactive shell?
I'm expecting the following when I press enter:
Similar to what's possible in: https://github.com/c-bata/go-prompt/tree/master/_example
Beta Was this translation helpful? Give feedback.
All reactions