🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #88528

[slrn] my_header_scroller, how to script CTRL-N?

#88528
From: Joe Koenig
Date: Fri, 30 Nov 2001 21:30
34 lines
1561 bytes
Hi, S-LANG'ers.

I'm trying to customize slrn. I've seen this also in the wishlist as:
"Make scrolling configurable"
I guess I'll remap the N key to call this function and additionally put
a call("article_page_dow") in this function.
However, the function doesn't work. It should act like I'm hitting
6 times CTRL-N (or arrow-down) and 5 times CTRL-P (or arrow-up).
Instead, it scrolls the header only one line down.

static define my_header_scroller()
{
    variable counter;
    counter=0;
    
    loop(6)
    {
        % if possible, then I want to catch EOB in header
        call("header_line_down");
        counter += 1;
    }
    
    loop(5) % or: loop(counter)
    {
        call("header_line_up");
    }
}

Thanks

Joe

P.S.: See, J.B.? I'm learning.
Technical Details
Message-ID: <slrna0frag.ah.joe.r.user@joeshost.joesdomain>
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!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!62.109.72.77!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrna0frag.ah.joe.r.user@joeshost.joesdomain>
Subject: [slrn] my_header_scroller, how to script CTRL-N?
Date: Fri, 30 Nov 2001 21:30:29 +0000
From: Joe Koenig <joe.r.user@gmx.de>
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!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!62.109.72.77!not-for-mail
Newsgroups: news.software.readers
Lines: 33
NNTP-Posting-Host: 62.109.72.77
X-Trace: fu-berlin.de 1007155829 7489112 62.109.72.77 (16 [105377])
User-Agent: slrn/0.9.7.3 (Linux)