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
Describe the bug
When conditionally rendering a line if you're full screen, then when you exit full screen it clears too many lines and removes terminal output that isn't part of
Setup
Please complete the following information along with version numbers, if applicable.
OS: Linux, NixOS
Shell: tested and getting the same glitch in bash, zsh, fish, and pwsh
Terminal Emulator: only tested alacritty, kitty, and iterm
Terminal Multiplexer: tested both with and without tmux
To Reproduce
Steps to reproduce the behavior:
Have some history in your terminal
go run .
click f to enter fullscreen and then again to exit fullscreen (doesn't have to be double clicked quickly. The glitch is not time sensitive at all actually)
repeat step 3 and see how it clears 1 line at a time from your terminal history
Expected behavior
When exiting full screen mode, tea renders the view first before trying to figure out how many lines to clear.
Screenshots
When first just running the program:
After clicking f to enter fullscreen:
Then clicking f again to exit:
Doing that again, clicking f twice, results in another line removed:
Double clicking again:
And again:
Additional context
As a more real-life example, in my real program I have all the normal output, but then conditionally a status bar at the end.
When toggling fullscreen it will add a status line to my program saying "forcing fullscreen". Then if there are no other status messages, when I get out of full screen then the status line should also disappear, leading to the bug/glitch explained in this issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
When conditionally rendering a line if you're full screen, then when you exit full screen it clears too many lines and removes terminal output that isn't part of
Setup
Please complete the following information along with version numbers, if applicable.
To Reproduce
Steps to reproduce the behavior:
go run .
Source Code
Expected behavior
When exiting full screen mode, tea renders the view first before trying to figure out how many lines to clear.
Screenshots
When first just running the program:
After clicking f to enter fullscreen:
Then clicking f again to exit:
Doing that again, clicking f twice, results in another line removed:
Double clicking again:
And again:
Additional context
As a more real-life example, in my real program I have all the normal output, but then conditionally a status bar at the end.
When toggling fullscreen it will add a status line to my program saying "forcing fullscreen". Then if there are no other status messages, when I get out of full screen then the status line should also disappear, leading to the bug/glitch explained in this issue.
The text was updated successfully, but these errors were encountered: