Don't clear the screen when switching to the alternate screen
Submitted by Howard Chu
Link to original bug (#591648)
Description
Currently when the command is received to switch to the alternate screen, the code always clears the alt screen and homes the cursor. This behavior is wrong, and makes it difficult to use most of the fullscreen programs in Linux. E.g., when you're viewing a document with less, and then exit, the text you were reading disappears when you exit and return to the main screen. Usually you can issue the command sequence to flip back to the alternate screen and re-read the text, but libvte destroys it for no obvious reason.
In the original VT100 and Xterm, none of this behavior was automatic, and it was up to the termcap/terminfo definition to include whatever clear/home command sequences should be issued when entering and exiting fullscreen mode. The library should not be performing any actions that were not explicitly requested by the user/application.
Version: 0.20.x