You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this! I can replicate the behavior, though it's a bit of an interesting case here:
The alternate screen buffer is disabled by default in GNU Screen. To enable it you can press screen’s escape key (ctrl+a by default) and enter :altscreen on. After that the altscreen in Bubble Tea will behave as expected.
That said, we shouldn't be printing over existing text in the terminal like in the screenshot above. To fix this, Bubble Tea should clear the screen after the altscreen initializes, even if it doesn't initialize. For comparison, Vim, which also usually operates in an altscreen, does this.
Steps to reproduce
go run examples/fullscreen/main.go
Expected result: Screen is cleared and you only see the countdown message
Actual result: Your terminal prompt, history, and whatever else is still visible alongside the output of the program.
However, once the program exits, the contents of the terminal are cleared.
This bug does not happen in tmux or in a bare Terminal.
Screenshot
(I ran
ls
just before running the program, to illustrate how it writes over top of the existing terminal contents)The text was updated successfully, but these errors were encountered: