Question: How to do an interactive shell input like bash? #1173
Unanswered
ZephyrPhrost
asked this question in
Q&A
Replies: 2 comments 2 replies
-
🙏 |
Beta Was this translation helpful? Give feedback.
2 replies
-
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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