I am encountering a couple of issues while usage of screen. I am using PuTTY
Let's say, I am attached to a screen and execute the command
ls -la
Assuming the output covers my entire screen, I then issue
vim a.txt
After quitting VIM, I don't see the result of the previous ls
command which is unlike what I observe when I am detached from screen.
Also any command that has a long output, on scrolling up through a mouse is lost. I use the Ctrl+a+Esc
combo to go into copy mode and then scroll, using arrow keys (mouse scroll fails here as well). Is there any faster alternative to do that ?
Screen version 4.01.00devel (GNU) 2-May-06
Linux 3.13.0-139-generic #188-Ubuntu
^a
,[
to enter copy mode, in which you can scroll through thescreen
terminal's backlog. – DopeGhoti Mar 12 '18 at 18:35vim
that "preserve" the state of the screen as you describe use terminal control characters to present an alternate display layout for the application itself, which is switched back from when the application is terminated. However,screen
itself is already using this functionality, so it is not available to other programs likevim
to use. – DopeGhoti Mar 13 '18 at 15:21