home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!svin02!wsinis01!devet
- From: devet@wsinis01.info.win.tue.nl (Arjan de Vet)
- Newsgroups: alt.gopher
- Subject: Re: Is Less Really More?
- Message-ID: <3715@svin02.info.win.tue.nl>
- Date: 22 Jul 92 20:45:31 GMT
- References: <9207221650.AA25931@boombox.micro.umn.edu>
- Sender: news@svin02.info.win.tue.nl
- Reply-To: devet@info.win.tue.nl
- Followup-To: alt.gopher
- Distribution: alt
- Organization: Eindhoven University of Technology, the Netherlands
- Lines: 31
-
- In article <9207221650.AA25931@boombox.micro.umn.edu>
- BDESIMON@uga.cc.uga.edu (bert desimone) 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..).
-
- From the less(1) manual page:
-
- -r Causes "raw" control characters to be displayed. The
- default is to display control characters using the
- caret notation; for example, a control-A (octal 001) is
- displayed as "^A". Warning: when the -r flag is used,
- less cannot keep track of the actual appearance of the
- screen (since this depends on how the screen responds
- to each type of control character). Thus, various
- display problems may result, such as long lines being
- split in the wrong place.
-
- So do setenv LESS "-r" or from within less `-r'. This will display
- highlighted characters (if your terminal has this possibility). The display
- problems mentioned in the manual page are sometimes really annoying.
-
- Arjan
-