In ~/.screenrc:<p><pre><code> altscreen on
</code></pre>
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.<p>(A Google search seems to indicate that some people dislike this feature, but I found screen unusable until I discovered this option.)