home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / gopher / 1051 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  2.1 KB

  1. Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!svin02!wsinis01!devet
  2. From: devet@wsinis01.info.win.tue.nl (Arjan de Vet)
  3. Newsgroups: alt.gopher
  4. Subject: Re: Is Less Really More?
  5. Message-ID: <3715@svin02.info.win.tue.nl>
  6. Date: 22 Jul 92 20:45:31 GMT
  7. References: <9207221650.AA25931@boombox.micro.umn.edu>
  8. Sender: news@svin02.info.win.tue.nl
  9. Reply-To: devet@info.win.tue.nl
  10. Followup-To: alt.gopher
  11. Distribution: alt
  12. Organization: Eindhoven University of Technology, the Netherlands
  13. Lines: 31
  14.  
  15. In article <9207221650.AA25931@boombox.micro.umn.edu>
  16. BDESIMON@uga.cc.uga.edu (bert desimone) writes:
  17.  
  18. >OK, let's say you have an environment varaible set for PAGER. Some
  19. >people like to set this to less so that man and other utilites that
  20. >look for this variable will use less.  Now, you leave the PAGER_COMMAND
  21. >for the Gopher client -- set in conf.h -- as more.  Crank up Gopher,
  22. >and behold the Pager command. It is less.  No problem??  Well, there
  23. >seem to be a few.  The main one has to do with the way that less
  24. >handles, or rather doesn't handle, the character sequences used for
  25. >toggling screen highlighting for search terms in retrieved documents.
  26. >Instead of the highlighting action taking place, the highlighting
  27. >characters are displayed (..this is the ^[[7mterm^[[m searched for..).
  28.  
  29. From the less(1) manual page:
  30.  
  31.      -r   Causes "raw" control characters to be  displayed.   The
  32.           default  is  to  display  control  characters using the
  33.           caret notation; for example, a control-A (octal 001) is
  34.           displayed  as "^A".  Warning: when the -r flag is used,
  35.           less cannot keep track of the actual appearance of  the
  36.           screen  (since  this depends on how the screen responds
  37.           to each type  of  control  character).   Thus,  various
  38.           display  problems  may result, such as long lines being
  39.           split in the wrong place.
  40.  
  41. So do setenv LESS "-r" or from within less `-r'. This will display
  42. highlighted characters (if your terminal has this possibility). The display
  43. problems mentioned in the manual page are sometimes really annoying.
  44.  
  45. Arjan
  46.