Date: Wed, 13 Aug 2008 23:52:35 +0530 From: "N. Raghavendra" <raghu@mri.ernet.in> To: "Krishna Mohan Gundu" <gkmohan@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: stopping less command from garbaging on the screen Message-ID: <86myjg4vx0.fsf@riemann.mri.ernet.in> In-Reply-To: <70ec82800808121707p3fc0567bgf610360bd2f2a2f0@mail.gmail.com> (Krishna Mohan Gundu's message of "Tue, 12 Aug 2008 17:07:08 -0700") References: <70ec82800808121707p3fc0567bgf610360bd2f2a2f0@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 2008-08-12T17:07:08-07:00, Krishna Mohan Gundu wrote: > When less exits the entire page history of the less session remains > on the screen. How do I prevent less from doing that? A brute-force method is to repaint the screen before `less', and to clear it afterwards, which can be done in `tcsh' with alias less 'less -c \!* && clear' However, this makes the screen contents prior to the `less' command scroll off the top and become invisible. To avoid this, you can use termcap(5) instead of the above alias: setenv TERMCAP "xterm|xterm-color:tc=xterm-xfree86:" setenv LESS "-cs" setenv PAGER "less" See http://www.greenwoodsoftware.com/less/faq.html#tite and `/etc/termcap'. > Also are you aware of any articles on the web that summarize the > behavioral differences like these between linux and freebsd. I used Debian for several years before moving to FreeBSD some years ago. I don't remember particularly making an effort to deal with the differences between them, so I can't help you there. FWIW, I found Matthew Fuller's article `BSD vs Linux' at http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php interesting. Raghavendra. -- N. Raghavendra <raghu@mri.ernet.in> | http://www.retrotexts.net/ Harish-Chandra Research Institute | http://www.mri.ernet.in/ See message headers for contact and OpenPGP information.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86myjg4vx0.fsf>