🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #195677

Re: [slrn] reading manuals from within slrn macro

#195677
From: Troy Piggins
Date: Fri, 16 Feb 2007 23:24
65 lines
3369 bytes
* SINNER is quoted & my replies are inline below :
> * Troy Piggins wrote in news.software.readers:
>> 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-
>
> Troy, Do you use gnome-terminal?

No.  Mostly I log in from my WinXP machine over ssh via PuTTY to
my Ubuntu machine.

> F1 brings up the Gnome help browser, so I had to change it to F2. Also,

Ok.  Of course any key will do it.

> I know you use Ubuntu and the docs in the slrn package are gzipped so I
> had to add the .gz to the above 3 txt files. Beyond that, AWESOME.

Aah.  Ok.  I don't use the slrn Ubuntu package, I compile slrn
from source because I use a patched version (score colour patch).

> Thanks for doing all the heavy lifting :)

It aint all /that/ heavy  ;)

> I would go so far as to say you might consider sending them in to be
> posted on the macros page, both this and the mutt one. Very nice stuff.

Will do.  Thanks.  The code in them isn't that "pretty" - I am no
programmer.  But they work for me, and hopefully others find them
useful.

-- 
Troy Piggins             ,-O   (o-    O         All your sigs are belong to us.
http://piggo.com/~troy  O   )  //\     O
RLU#415538               `-O   V_/_  OOO
hackerkey://v3sw5HPUhw5ln4pr6OSck1ma9u6LwXm5l6Di2e6t5MGSRb8OTen4g7OPa3Xs7MIr8p7
Technical Details
Message-ID: <20070217091829@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!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail
References: <20070216134921@usenet.piggo.com> <rfpga4xps9.ln2@news.gates-of-hell.com>

Show Full Headers
Complete Article Headers
Message-ID: <20070217091829@usenet.piggo.com>
Subject: Re: [slrn] reading manuals from within slrn macro
Date: Sat, 17 Feb 2007 09:24:20 +1000
From: Troy Piggins <usenet-0702@piggo.com>
References: <20070216134921@usenet.piggo.com> <rfpga4xps9.ln2@news.gates-of-hell.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!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail
Newsgroups: news.software.readers
Reply-To: usenet-0702@piggo.com
X-NNTP-Proxy: Leafnode-2
 (http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/)
User-Agent: slrn/0.9.8.1pl1/rt (Linux)
Lines: 65
NNTP-Posting-Host: 203.206.121.193
X-Trace: 1171668347 per-qv1-newsreader-01.iinet.net.au 24738 203.206.121.193