🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #36762

Re: [slrn] Feature requests -- forced message() and access to number of articles/groups in list

#36762
From: Byrial Jensen
Date: Fri, 24 Oct 1997 00:00
34 lines
1840 bytes
J.B. Nicholson-Owens <jbn@pop-a-wheelie.midwest.net> wrote:
>I'd like to request access to the number of articles or groups in the list
>(so I can avoid discovering this with hokey group_down_n()/header_down()
>loops)

Hmm, that would not be too difficult. Maybe two more lines in the table
of Slang variables and intrinsics in interp.c, like this:

 MAKE_VARIABLE(".ARTICLES_IN_WINDOW", &Slrn_Header_Window.num_lines,
                INT_TYPE, 1),
 MAKE_VARIABLE(".GROUPS_IN_WINDOW", &Group_Window.num_lines, INT_TYPE, 1),

And then Slrn_Header_Window and Group_Window should be made global
variables instead of static. I could make a patch for that if you want.
What names would you prefer for the Slang variables?

>and a way to force a message to be drawn on the status line (even if
>another message is going to be drawn right after it) so I can update status
>bars.

I am not sure that I understand what you mean. Maybe you could do
something like this:

define forced_message (string)
{
  message (string);
  () = input_pending (50); % wait 5 seconds if no input is pending
}

Best regards
- Byrial

Technical Details
Message-ID: <slrn651dln.o9.byrial@ask.ask>
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: <slrn64fq3t.4jt.jbn@pop-a-wheelie.midwest.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn651dln.o9.byrial@ask.ask>
Subject: Re: [slrn] Feature requests -- forced message() and access to number of articles/groups in list
Date: Fri, 24 Oct 1997 00:00:00 +0000
From: byrial@post3.tele.dk (Byrial Jensen)
References: <slrn64fq3t.4jt.jbn@pop-a-wheelie.midwest.net>
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: 284749947
X-Complaints-To: abuse@news.inet.tele.dk
X-Trace: news.inet.tele.dk 877705393 23074 (None) 194.239.129.84
Newsgroups: news.software.readers