This question already has an answer here:
I would like to use
screen (from GNOME Terminal, via
ssh) like I use GNOME Terminal without
screen, or as close as possible to that. Specifically:
In GNOME Terminal, I can scroll back using the mouse wheel, the scrollbar or Shift+PgUp/PgDn.
screen, I have to go to copy mode (Ctrl+A,[) to be able to scroll back (mouse wheel works after that). Scrolling behavior can be changed (see this answer and this answer) but this solution has the following flaws:
- When I open a file with
vim, I can scroll above the editor 'window' with my mouse wheel and see the previous contents of the terminal.
- When I close the editor, its contents stay in the scrollback buffer (sometimes in several copies) instead of disappearing.
This behavior can be changed using
altscreen on (see this answer) but the only effect is that when the editor is closed, the old terminal contents are appended to the scrollback buffer in my terminal window so I can still see the editor crap when I scroll back using my mouse wheel.
Does this mean it's not possible to have nice scrolling in
screen? Basically, all I'd like is being able to scroll just like in copy mode (using the mouse wheel, and scrollbar if possible) but without having to enter copy mode.