altscreen on
enables alternate screen, which is disabled by default, but is normally enabled in most terminals. It's the thing which prevents less, vi, etc. from clobbering the screen contents and leaving their gunk behind after exiting.(A Google search seems to indicate that some people dislike this feature, but I found screen unusable until I discovered this option.)
In return I give you my favorite screen hack that displays the available RAM on the server every 30 seconds in the caption:
In ~/.screenrc
backtick 2 30 30 $HOME/.screenrc.bt.2
caption always "%{gk}plab001 %?%{wk}%-Lw%?%{yK}%n*%f %t%?(%u)%?%?%{wk}%+Lw%? %=%{yk}%2` %{gk}%c %{yk}%d/%M/%Y"
in ~/.screenrc.bt.2 free -m | xargs | awk '{print $17 "MB"}'
The caption string above also prints the current window titles and the time/date, so this is also useful for keeping ssh sessions open indefinitely since there is activity at least once a minute when the time updates.Really though, check it out. The main thing I like better in tmux is that it does both horizontal and vertical split terminal windows in a way that seems much more intuitive to me than screen.
For reference, the option is question is
attrcolor b ".I"