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
Hi,
As per description, I noticed that the terminal is correctly cleared if the last frame output is taller than the terminal window, however, if the last frame is shorter, the second to last frame isn't cleared. Here's a video to demonstrate this:
03-50-xck1w-29hr6.mp4
I would expect ink to not show the list after pressing enter. Is this expected behavior?
For now I've littered my code with things like this, but I would expect Ink to handle such scenarios.
The text was updated successfully, but these errors were encountered:
matteodepalo
changed the title
Output terminal isn't cleared on exit when second to last frame is taller than terminal
Output terminal isn't cleared when second to last frame is taller than terminal
May 3, 2023
Hi,
As per description, I noticed that the terminal is correctly cleared if the last frame output is taller than the terminal window, however, if the last frame is shorter, the second to last frame isn't cleared. Here's a video to demonstrate this:
03-50-xck1w-29hr6.mp4
I would expect ink to not show the list after pressing enter. Is this expected behavior?
For now I've littered my code with things like this, but I would expect Ink to handle such scenarios.
Where
wrapperHeight
is the height of theBox
containing everything.Code to reproduce (make your terminal window height less than 20 lines):
Reproduction repo https://github.com/matteodepalo/clear-terminal
The text was updated successfully, but these errors were encountered: