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
Ideally, a TUI that makes use of an alt screen should restore the screen state and cursor after exiting. This is the expected behaviour of TUI apps that uses an alt screen.
Expected:
prompt $ echo hi
hi
prompt $ ./main.exe # enters alt screen
prompt $ |# cursor here after TUI finishes
Actual:
When the TUI exits, the terminal outputs and prompts of the previous one or two commands are gone, including the ./main.exe line that runs the TUI itself.
Ideally, a TUI that makes use of an alt screen should restore the screen state and cursor after exiting. This is the expected behaviour of TUI apps that uses an alt screen.
Expected:
Actual:
When the TUI exits, the terminal outputs and prompts of the previous one or two commands are gone, including the
./main.exe
line that runs the TUI itself.Demo
Workaround
Unfortunately, I didn't find a way to remove the newline produced before entering alt screen, and the extra newline after exiting.
The text was updated successfully, but these errors were encountered: