[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: less in an xterm

> When I run less in an xterm, it seems to save the image of whatever is
> in the window, display whatever it's displaying, and then restore the
> image. On the Linux console, when I exit less, I get just the shell
> prompt on the bottom of the screen, and not whatever was on the screen
> when I ran less.
> I'm used to and like the console behaviour more. Is there a way to get
> the same behaviour in an xterm?

You just have to use "less -X".  Or better, put -X in the environment
variable called LESS, so that less never restores the display.

Michel Beland                 beland@CERCA.UMontreal.CA
professionnel de recherche    tel: (514)369-5223  fax: (514)369-3880
CERCA (CEntre de Recherche en Calcul Applique)
5160, boul. Decarie, bureau 400(423), Montreal (Quebec), Canada, H3X 2H9

Reply to: