Article View: news.software.readers
Article #195652[slrn] reading manuals from within slrn macro
From: Troy Piggins
Date: Fri, 16 Feb 2007 04:07
Date: Fri, 16 Feb 2007 04:07
37 lines
2206 bytes
2206 bytes
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 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:
<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!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-mailShow Full Headers
Complete Article Headers
Message-ID: <20070216134921@usenet.piggo.com> Subject: [slrn] reading manuals from within slrn macro Date: Fri, 16 Feb 2007 14:07:24 +1000 From: Troy Piggins <usenet-0702@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 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: 37 NNTP-Posting-Host: 203.206.121.193 X-Trace: 1171598934 per-qv1-newsreader-01.iinet.net.au 24722 203.206.121.193