Description
In SSH sessions, when you run vim, top, etc., the displayed data overwrites the recent rollback buffer.
⬆️ The image above shows the rollback buffer before I used vim, when the rollback buffer should hold the data from ll.
⬆️ However, after the vim command is used and the exit, the echo generated by ll command in the rollback buffer has been overwritten by the vim command.
I know that the last page of data should be preserved after exiting using vim, but the data in the previous rollback buffer should not be lost, and I feel that this part of the processing like secureCRT is what we want.
⬆️ Just like this, after I use the vim command and exit, the previous ll command output will still exist, and the vim command will retain the state of the last screen before exiting.