🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #55075

Re: [SLRN] Key bindings

#55075
From: Heikki Kantola
Date: Fri, 10 Dec 1999 00:00
53 lines
3301 bytes
J. Horacio <homega@ciberia.es> informed
news.software.readers with the following:
>El 9 Dec 1999 10:39:29 GMT, Heikki Kantola <hezu@iki.fi> dijo:
>> Well, I'm not quite sure what you mean by "newsgroup menu", but if you
>> mean the thread/article listing, you indeed can't separate that from
>> the article view in slrnrc settings, although with S-Lang macros and 
>> is_article_visible()-function you can bind separate actions for each.
>
>I meant separating the `thread listing' from the `article itself'.  Just
>as you would do with a MUA (eg. mutt), where they have different key
>bindings.  I don't quite understand that ``is_article_visible()-function'' 
>you mention, how is that done?

I mean that with S-Lang macros you can program Slrn to do things it
doesn't do by default and it includes a facility, namely the above
mentioned function to determine whether the article is shown or not.
For example you could use following macro to either quit to group
listing or show article listing and bind it to left arrow with
following S-Lang code snippet:

 define hide_art_or_quit ()
 {
    variable last=0;
    if (is_group_mode ()) return;  % just to make sure.
    !if (header_next_unread ()) last=1;
    if (is_article_visible () and last!=1) call ("hide_article");
    else call ("quit");
 }
 definekey ("hide_art_or_quit", "\e[D", "article");

If you haven't yet used S-Lang macros, I suggest to read the 
README.macros and examples included in Slrn distribution and perhaps 
take a look at S-Lang WWW site, <URL:http://www.s-lang.org/>.

>> My Slrn-settings are also online, <URL:http://www.iki.fi/hezu/
>> slrn-links.html#my_cfg> as one could have discovered from Sven's Slrn
>> users listing, <URL:http://www.math.fu-berlin.de/%7Eguckes/slrn/
>> users.html>.
>
>I'll have a look at them, thanks a lot.  I fear Guckes' may belong to a
>previous version.  His pages do contain some very useful info, but
>sometimes a bit outdated (as with mutt's).

Be warned that my configuration files may look somewhat sparthan and
messy... ;)

-- 
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.

Technical Details
Message-ID: <slrn852mct.cfh.hezu@tuuri.ling.helsinki.fi>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <944684062.196195@cache0-serv> <slrn84v1n1.qkk.hezu@tuuri.ling.helsinki.fi> <944838582.416385@cache0-serv>

Show Full Headers
Complete Article Headers
Message-ID: <slrn852mct.cfh.hezu@tuuri.ling.helsinki.fi>
Subject: Re: [SLRN] Key bindings
Date: Fri, 10 Dec 1999 00:00:00 +0000
From: Heikki Kantola <hezu@iki.fi>
References: <944684062.196195@cache0-serv> <slrn84v1n1.qkk.hezu@tuuri.ling.helsinki.fi> <944838582.416385@cache0-serv>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 559118799
Content-Transfer-Encoding: 8bit
Mail-Copies-To: nobody
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: usenet@news.helsinki.fi
X-Trace: oravannahka.helsinki.fi 944855454 20110 128.214.78.4 (10 Dec 1999 19:50:54 GMT)
Organization: Department of General Wizardry, Unseen University, Ankh-Morpork
User-Agent: slrn/0.9.5.7 (UNIX)
Mime-Version: 1.0
NNTP-Posting-Date: 10 Dec 1999 19:50:54 GMT
Newsgroups: news.software.readers