Replies: 2 comments 7 replies
-
Hey @Dentrax any particular reason you want it to be two separate programs? You could have a field in your model that's something like type model struct {
...
loaded bool
} wherein you set |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, thanks for awesome project.
I've created 2 different
tea.Program
:spinner
(that included in examples already)tea.WithAltScreen()
).What I want to do is to move the current state (program1, which is state1) to (program2, which is state2). I've written the following pseudo code:
I simply call
Start()
func in the background and start my task that handle some stuff. When it gets done, I'mKill()
ing theloading
and start myactual
program.But it seems does not work. It gets stuck in
loading
state. I've to send one of interruption messages (esc, q, ctrl+c), to move (transit? i'm not sure which keyword is right in this context) to next state.My use-case is to make a simple loading indicator during initializing the actual program. Are there any multi-program example around?
Beta Was this translation helpful? Give feedback.
All reactions