🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #195656

Re: [slrn] reading manuals from within slrn macro

#195656
From: Blinky the Shark
Date: Fri, 16 Feb 2007 08:06
39 lines
2343 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-

Yeah?  What do you do with that code?  ;)

-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Technical Details
Message-ID: <slrnetapeu.ti2.no.spam@thurston.blinkynet.net>
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!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <20070216134921@usenet.piggo.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnetapeu.ti2.no.spam@thurston.blinkynet.net>
Subject: Re: [slrn] reading manuals from within slrn macro
Date: Fri, 16 Feb 2007 08:06:44 +0000
From: Blinky the Shark <no.spam@box.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!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 39
X-Trace: individual.net sMLACr8u9NNkUuk3ICrkYwH8Yql7a3/y/7+mgahMEh8hznCXQY
X-Face: Jb-wQ7r&vrN}~8MC5B09S4&.ieh!Q:Di/XN.xrd#CU%;
 )bPa`Hm^(,3o$n(s75[P+$F+Q^4~Owj`WzkBtZU/#gL2BvEBm/e=/1,R0}d@q@)E
X-OS: Mandriva 2006 Linux; kernel 2.6.12
X-WebTV-Stationery: Standard; BGColor=black; TextColor=black
User-Agent: slrn/0.9.8.1 (Linux)