-
Notifications
You must be signed in to change notification settings - Fork 807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add: Exec, program.ReleaseTerminal and RestoreTerminal to re-use input and terminal #237
Conversation
e15aa46
to
ac68f3e
Compare
33be89c
to
5cd97b7
Compare
3667b41
to
0a31836
Compare
Played around with this for a few minutes this morning and found an issue. I haven't had time to dig into this yet but figured I'd raise it here in case this is going to be merged imminently -- I saw some activity on it yesterday. I'm running a program that is normally terminated by I followed this only enough to know that it's not hitting the update function's handling of a |
@jefferai Wow, thank you. We were actually planning in merging this. Will look into this, I have some theories as to what’s happening. |
…rminal ReleaseTerminal makes BubbleTea release the input / terminal, so users can spawn a sub-command. RestoreTerminal sets the input reader up again and triggers a repaint.
* feat: allow to execute other things besides exec.Commands. * fix: lint issues * fix: renames, examples Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
b2bbcd3
to
b365a7e
Compare
1e3229d
to
8e380dc
Compare
a5af798
to
f5ff931
Compare
Scenario:
What do you think? Does it make sense? Is that something that you could easily wrap onto this PR (if blunt asking is allowed 😄)? |
Program.ReleaseTerminal
makes Bubble Tea release the input / terminal, so users can spawn a sub-command.Program.RestoreTerminal
sets the input reader up again and triggers a repaint.Exec
is provided as aCmd
interface, and should be the primary method for running a blockingexec.Command
from within Bubble Tea.Fixes #171.