Article View: news.software.readers
Article #195661Re: [slrn] reading manuals from within slrn macro
From: SINNER
Date: Fri, 16 Feb 2007 13:51
Date: Fri, 16 Feb 2007 13:51
46 lines
2837 bytes
2837 bytes
* 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?
F1 brings up the Gnome help browser, so I had to change it to F2. Also,
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.
Thanks for doing all the heavy lifting :)
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.
--
David
All generalisations are dangerous, including this one.
Technical Details
Message-ID:
<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!nx01.iad01.newshosting.com!newshosting.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!news*.tds.net.MISMATCH!newspeer.tds.net!216.168.1.162.MISMATCH!sn-xt-sjc-02!sn-xt-sjc-08!sn-post-sjc-02!sn-post-sjc-01!supernews.com!corp.supernews.com!news.gates-of-hell.com!not-for-mailReferences:
<20070216134921@usenet.piggo.com>Show Full Headers
Complete Article Headers
Message-ID: <rfpga4xps9.ln2@news.gates-of-hell.com> Subject: Re: [slrn] reading manuals from within slrn macro Date: Fri, 16 Feb 2007 07:51:23 -0600 From: SINNER <99nesorjd@gates_of_hell.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!nx01.iad01.newshosting.com!newshosting.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!news*.tds.net.MISMATCH!newspeer.tds.net!216.168.1.162.MISMATCH!sn-xt-sjc-02!sn-xt-sjc-08!sn-post-sjc-02!sn-post-sjc-01!supernews.com!corp.supernews.com!news.gates-of-hell.com!not-for-mail Newsgroups: news.software.readers Organization: Hell.org X-Face: #sn6gF@jD*I3X; _)M5ymNQ1wG39y^'rxXRA5y-oi7.T/>P.P-40N\&-q'Mu+DWRSTF[}`Vtd85KnX\fe1~p-<(9U<zenv]u["swbx<^u; %a:ro>w=r"qdVdsY_@\.mDg9"ruPsYjX.Bi9M#gF-fG5=obWVG'>0W*w3RC X-NNTP-Proxy: Leafnode-2 <http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/> User-Agent: slrn/0.9.8.1pl1 (Debian) X-Complaints-To: abuse@supernews.com Lines: 46