🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #67951

Re: [slrn/tin] slrn equivalents to tin cmds?

#67951
From: Thomas Schultz
Date: Wed, 22 Nov 2000 00:00
35 lines
2052 bytes
On 21 November 2000, Steve tremblett <steve_nobody@nowhere.com> wrote:
[...]
> setkey article  article_lineup          "k"
> setkey article  article_linedn          "j"
[...]
> setkey article  down                    "j"
> setkey article  up                      "k"
[...]
> One thing doesn't work with these keybindings though - when viewing
> an article, j-k still operates on the article list at the top as
> opposed to the actual text of the article I'm viewing.  I have to hit
> enter or space to page down the article.  Have I made a mistake?

No, that's just the way slrn works. If you bind the same key more than
once in the same keymap, only the last setting will take effect. If
you want a key to execute a different command depending on whether or
not an article is displayed, you can bind it to a simple macro that
does just that:

#v+
public define smart_down ()
{
   if (is_article_visible())
     call("article_linedn");
   else
     call("down");
}
#v-
-- 
Thomas Schultz <tststs@gmx.de> * Recent news from http://slrn.sourceforge.net/
 -> [2000-10-22] Matthias Friedrich joins the team
 -> [2000-09-27] Initial release of the slrn reference manual
 -> [2000-09-18] slrn 0.9.6.3 is out

Technical Details
Message-ID: <slrn91nhd6.oq.tststs@starflower.tststs.ddns.org>
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: <LCpR5.219$Y3.9063@typhoon.sonic.net> <slrn91cnp6.e33g.hezu@tuuri.ling.helsinki.fi> <slrn91lqsc.4f2.steve_nobody@sjt-u10.cisco.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn91nhd6.oq.tststs@starflower.tststs.ddns.org>
Subject: Re: [slrn/tin] slrn equivalents to tin cmds?
Date: Wed, 22 Nov 2000 00:00:00 +0000
From: tststs@gmx.de (Thomas Schultz)
References: <LCpR5.219$Y3.9063@typhoon.sonic.net> <slrn91cnp6.e33g.hezu@tuuri.ling.helsinki.fi> <slrn91lqsc.4f2.steve_nobody@sjt-u10.cisco.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.mbox.zip!not-for-mail
X-Deja-AN: 696802510
X-Server-Date: 22 Nov 2000 19:54:29 GMT
X-Trace: fu-berlin.de 974924543 4905779 149.225.120.220 (16 [152])
Organization: Pinguin online.
User-Agent: slrn/0.9.6.3pl2 (Linux)
Newsgroups: news.software.readers