Getting 'less' to do the right thing (was Re: xterm subtleties)
In article <email@example.com> you write:
>I'm trying to configure xterm so that, for example, the screen isn't
>restored after exiting less.
>>From reading the manual page, I'd expect that a resource of the form
>would do the trick. However, this doesn't seem to have any effect.
>Anyone know if there's a way of doing this (without recompiling either
>less or xterm)?
A better solution is to hit less on the head, and stop its anti-
$ export LESS='-M -X -z-2'
This sets up a few default options to less:
-M be verbosein the line at the bottom of the screen
-X don't to terminal init & deinit (ie don't clear the screen)
-z-2 set an overlap of 2 lines when scrolling page by page
Hope this helps,