Article View: news.software.readers
Article #88586Re: [slrn] my_header_scroller, how to script CTRL-N?
From: Joe Koenig
Date: Sat, 01 Dec 2001 12:48
Date: Sat, 01 Dec 2001 12:48
84 lines
3541 bytes
3541 bytes
In article <slrna0gjs6.160.philb@wolf14.nols.com>, Phil Boutros wrote:
> Joe Koenig <joe.r.user@gmx.de> wrote:
>>
>> YO - yes and no. Depends where the cursor is located. When the cursor is
>> on top of the header buffer, CTRL-N and CTRL-P only move the cursor,
>> without scrolling the header. When the cursor is on bottom of the header
>> buffer, CTRL-N/CTRL-P move the cursor _and_ scroll the header. I just
>> want to avoid hitting 6xctrl-n + 5xctrl-p to scroll the header.
>
> A few questions: Do you have an article visible when you try
> this? How many headers are visible when the article is showing?
> Where is the cursor in relation to this?
The article is visible. I have 8 headers visible in the headerbuffer.
The cursor is in row 7.
> If I try it with the cursor starting lower, I'll get different
> results, depending on how many headers are showing. Logically, it'll
> only start scrolling headers up when you have 6 headers between the
> header you're pointing out and the beginning of the article window.
> Is this usually your case?
Yes.
>Of course, if you have less than 6 headers
> left until the end of the list, you'll be in for some beeping...
That's why I asked for a way to catch EOB (whatever) in the header
buffer. BTW: setterm -blength 0 xset b 0
Is my point really that unclear? Is this really such a hard question?
I'll take another chance to make the point clear.
-------------------- SLRN ---------------------
23 D
24 D - this is the header buffer -
25 D I've read articles 23 to 29
26 D
27 D
28 D
29 D <- cursor and current article
30 - RE: HELP!!! Nobody understands me
-----------------------------------------------
- this is the article buffer -
-----------------------------------------------
After hitting 6 x CTRL-N plus 5 x CTRL-P it will look like this:
------------------- SLRN ----------------------
26 D
27 - <- cursor
28 -
29 -
30 -
31 -
32 -
33 -
-----------------------------------------------
- article bufer -
-----------------------------------------------
My script should do the same. But instead, it looks like this:
------------------ SLRN -----------------------
24 D
25 D
26 D
27 D
28 D
29 D
30 - <- cursor is here
31 - RE: Is this a bug?
-----------------------------------------------
- this is the article buffer -
-----------------------------------------------
I suppose I'm missing something. Otherwise my scripts would work. It
can't be a bug in S-LANG, right?
Thanks
Joe
Technical Details
Message-ID:
<slrna0hh4n.76.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.17!not-for-mailReferences:
<slrna0frag.ah.joe.r.user@joeshost.joesdomain> <slrna0gbpt.r1.philb@wolf14.nols.com> <slrna0gais.ah.joe.r.user@joeshost.joesdomain> <slrna0gjs6.160.philb@wolf14.nols.com>Show Full Headers
Complete Article Headers
Message-ID: <slrna0hh4n.76.joe.r.user@joeshost.joesdomain> Subject: Re: [slrn] my_header_scroller, how to script CTRL-N? Date: Sat, 01 Dec 2001 12:48:59 +0000 From: Joe Koenig <joe.r.user@gmx.de> References: <slrna0frag.ah.joe.r.user@joeshost.joesdomain> <slrna0gbpt.r1.philb@wolf14.nols.com> <slrna0gais.ah.joe.r.user@joeshost.joesdomain> <slrna0gjs6.160.philb@wolf14.nols.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!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.17!not-for-mail Newsgroups: news.software.readers Lines: 83 NNTP-Posting-Host: 62.109.72.17 X-Trace: fu-berlin.de 1007210939 7147382 62.109.72.17 (16 [105377]) User-Agent: slrn/0.9.7.3 (Linux)