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

  1. 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
  2. Message-ID: <9207221743.AA00366@mirc00.ncms.org>
  3. From: chrisl@mirc00.ncms.org (Chris Lang)
  4. Date: Wed, 22 Jul 1992 13:43:26 -0400
  5. References: bert desimone <BDESIMON@uga.cc.uga.edu>
  6.        "Is Less Really More?" (Jul 22, 12: 38pm)
  7. X-Mailer: Mail User's Shell (7.2.3 5/22/91)
  8. Original-To: gopher-news@boombox.micro.umn.edu
  9. Subject: Re: Is Less Really More?
  10. Newsgroups: alt.gopher
  11. Distribution: alt
  12. Sender: news@news2.cis.umn.edu
  13. Approved: alt.gopher@news.cis.umn.edu
  14. Lines: 26
  15.  
  16. bert desimone <BDESIMON@uga.cc.uga.edu> writes:
  17. > OK, let's say you have an environment varaible set for PAGER. Some
  18. > people like to set this to less so that man and other utilites that
  19. > look for this variable will use less.  Now, you leave the PAGER_COMMAND
  20. > for the Gopher client -- set in conf.h -- as more.  Crank up Gopher,
  21. > and behold the Pager command. It is less.  No problem??  Well, there
  22. > seem to be a few.  The main one has to do with the way that less
  23. > handles, or rather doesn't handle, the character sequences used for
  24. > toggling screen highlighting for search terms in retrieved documents.
  25. > Instead of the highlighting action taking place, the highlighting
  26. > characters are displayed (..this is the ^[[7mterm^[[m searched for..).
  27.  
  28. This problem can be solved by using the 'r' and 'f' options to less.  Try
  29. setting your LESS environment variable to '-rf'.  The -r option causes less
  30. to enter 'raw' mode, where it passes the control characters through unchanged,
  31. and -f forces it not to treat the file as a binary file, which it ordinarily
  32. would if it saw the control characters in the file.
  33.  
  34. However, while that will fix 'less' for use with Gopher, I second the
  35. suggestion of adding a GOPHER_PAGER variable, particularly since I don't
  36. want to leave 'r' and 'f' in my global LESS variable.
  37.  
  38. Hope this helps anyone else who would rather use 'less' as their Gopher
  39. pager...
  40.  
  41.  -Chris
  42.