home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!news2.cis.umn.edu!gopher-news-request@boombox.micro.umn.edu
- Message-ID: <9207221743.AA00366@mirc00.ncms.org>
- From: chrisl@mirc00.ncms.org (Chris Lang)
- Date: Wed, 22 Jul 1992 13:43:26 -0400
- References: bert desimone <BDESIMON@uga.cc.uga.edu>
- "Is Less Really More?" (Jul 22, 12: 38pm)
- X-Mailer: Mail User's Shell (7.2.3 5/22/91)
- Original-To: gopher-news@boombox.micro.umn.edu
- Subject: Re: Is Less Really More?
- Newsgroups: alt.gopher
- Distribution: alt
- Sender: news@news2.cis.umn.edu
- Approved: alt.gopher@news.cis.umn.edu
- Lines: 26
-
- bert desimone <BDESIMON@uga.cc.uga.edu> writes:
- > OK, let's say you have an environment varaible set for PAGER. Some
- > people like to set this to less so that man and other utilites that
- > look for this variable will use less. Now, you leave the PAGER_COMMAND
- > for the Gopher client -- set in conf.h -- as more. Crank up Gopher,
- > and behold the Pager command. It is less. No problem?? Well, there
- > seem to be a few. The main one has to do with the way that less
- > handles, or rather doesn't handle, the character sequences used for
- > toggling screen highlighting for search terms in retrieved documents.
- > Instead of the highlighting action taking place, the highlighting
- > characters are displayed (..this is the ^[[7mterm^[[m searched for..).
-
- This problem can be solved by using the 'r' and 'f' options to less. Try
- setting your LESS environment variable to '-rf'. The -r option causes less
- to enter 'raw' mode, where it passes the control characters through unchanged,
- and -f forces it not to treat the file as a binary file, which it ordinarily
- would if it saw the control characters in the file.
-
- However, while that will fix 'less' for use with Gopher, I second the
- suggestion of adding a GOPHER_PAGER variable, particularly since I don't
- want to leave 'r' and 'f' in my global LESS variable.
-
- Hope this helps anyone else who would rather use 'less' as their Gopher
- pager...
-
- -Chris
-