| Date: Fri, 21 Jun 2002 02:22:57 +0100
| From: kevin lyda <kevin at ie.suberic.net>
|
| On Fri, Jun 21, 2002 at 01:22:09AM +0100, Brian Foster wrote:
| > I'm writing a wrapper shell script around less(1) for various
| > bizarre reasons that are not particularly relevant [ ... ]
|
| probably won't be helpful in your case, but less has several useful
| environment variables. the less man page has a very useful explaination
| of the LESSOPEN environment var. it's quite possible to configure less
| to page through a lot of things in a handy way. my lessopen script
| works like so:
| [ ... useful example deleted ... ]
| essentially, less is like the emacs of pagers.
thanks for the hint! as it so happens, my approach blew up in a
number of subtle fashions in the intended application (albeit it
worked Ok standalone) --- part of a multi-locale/charset interface
to the nmh-1.0.4/MH.6.8 MUA --- so that I had to rethink much of
the design .... ;-(
the approach I'm now using, whilst it has not (yet) migrated into
LESSOPEN, probably could make that step, which does appear to be
the next(?) natural step. in other words, I quite possibly will
switch to a LESSOPEN script. again, thanks for the comment!
cheers,
-blf-
--
Innovative, very experienced, Unix and | Brian Foster Dublin, Ireland
Chorus (embedded RTOS) kernel internals | e-mail: blf at utvinternet.ie
expert looking for a new position ... | mobile: (+353 or 0)86 854 9268
For a résumé, contact me, or see my website http://www.blf.utvinternet.ie
Stop E$$o (ExxonMobile): «Whatever you do, don't buy Esso --- they
don't give a damn about global warming.» http://www.stopesso.com
Supported by Greenpeace, Friends of the Earth, and numerous others...
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!