GNU screen and less: overwriting previous output
-
22-08-2019 - |
Question
I'm in the process of switching from multiple tabs in iTerm to one GNU screen
session. In iTerm, I can look at a file with less
and the content of the terminal is restored when I quit less
. In GNU screen
, the previous contents get overwritten by the content of the file I looked at in less
. Is there some way to change this?
Solution
Try adding
altscreen on
to your .screenrc.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow