-
Notifications
You must be signed in to change notification settings - Fork 723
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
Altscreen enter and exit messages #49
Comments
This is a good idea. So we should provide 2 Msg I think I can submit a PR if you haven't done this. |
That would be awesome, @kiyonlin. Please do feel free to submit a PR. I’d probably call them |
Actually, @kiyonlin, there’s a branch I should merge before you do this. I’ll do that in a few minutes and let you know when it’s in. |
Dw, I will do it tomorrow (9 hours later) 😃 |
Oh, just one more thought: realizing we'll also need two commands in addition to messages which I'd probably call |
This has been merged and was released in v0.13.0. |
Right now the only way to enter and exit the altscreen (full window mode) is via
Program.EnterAltScreen()
andProgram.ExitAltScreen()
. This means that, without employing hacks, one can only enter and exit when starting and quitting programs. It probably makes sense to have library-level commands, similar totea.Quit
, for entering and exiting the altscreen to give Bubble Tea programs the opportunity to jump in and out of the altscreen in-program.The text was updated successfully, but these errors were encountered: