Article View: news.software.readers
Article #205021Re: [slrn] reading manuals from within slrn macro
From: Will Parsons
Date: Tue, 28 Aug 2007 23:19
Date: Tue, 28 Aug 2007 23:19
40 lines
2147 bytes
2147 bytes
Troy Piggins wrote:
> A simple macro to view slrns manuals, man pages, or any other
> reference docs you like from within slrn via a menu.
>
> Simply hit "F1" to bring up the menu, pick the doc you want, then
> hit enter. To escape out of the menu, slrn standard thing to do
> is hit ctrl-g.
>
> #v+
>
> define view_manuals() {
>
> % be sure to check the path to your slrn docs with trailing "/"
> % default is /usr/local/share/doc/slrn/
>
> variable docpath="/usr/local/share/doc/slrn/";
>
> variable man=select_list_box( "slrn Docs", "manpage", "manual",
> "score", "slrnfuns", 4, 1);
>
> switch (man)
> { case "manpage" : system( "man slrn");}
> { case "manual" : system( "less "+docpath+"manual.txt");}
> { case "score" : system( "less "+docpath+"score.txt");}
> { case "slrnfuns" : system( "less "+docpath+"slrnfuns.txt");}
> { message ("Error in doc selection");}
>
> }
> definekey ( "view_manuals", "<f1>", "article");
> definekey ( "view_manuals", "<f1>", "group");
>
> #v-
(Responding to an old post...)
This is really good! Thanks - this is much better than hunting around the
file system trying to remember where the documenation is!
--
Will P.
Technical Details
Message-ID:
<slrnfd9bcg.17o.oudeis@isis.thalatta.eme>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<20070216134921@usenet.piggo.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnfd9bcg.17o.oudeis@isis.thalatta.eme> Subject: Re: [slrn] reading manuals from within slrn macro Date: Tue, 28 Aug 2007 23:19:44 +0000 From: Will Parsons <oudeis@nodomain.invalid> References: <20070216134921@usenet.piggo.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 40 Reply-To: ellenophilos@yahoo.com X-Trace: individual.net hzfLBrgK6tosWBuxYl1lwArKPCn7GMphFxug+SYgtpXOU/QHN6 Cancel-Lock: sha1:Qo5NgUmFBw2Iv/jwMLrxmOktd0o= User-Agent: slrn/0.9.8.1 (FreeBSD)