🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Klaus Kettner Wed, 21 Oct 1998 00:00
SLRN: Periodically check for new news?
#43968
Author: Klaus Kettner
Date: Wed, 21 Oct 1998 00:00
12 lines
720 bytes
Hi!

I hate pressing "G" every 15 minutes just to check for
new news. Is there a way to automate this?


-- 

        -kk-          http://www.kettner.nu


Re: SLRN: Periodically check for new news?
#43943
Author: Lloyd Zusman
Date: Wed, 21 Oct 1998 00:00
29 lines
2288 bytes
bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) writes:

> Klaus Kettner wrote:
> > I hate pressing "G" every 15 minutes just to check for
> > new news. Is there a way to automate this?
> 
> Not in S-Lang or slrn currently.  I think this is a good thing because you
> might not be ready to read news every time it would automatically fetch new
> news. You could make a macro that gets new news every time you enter group
> mode; this would get new news more frequently than every 15 minutes, but it
> would not get new news when you're not sitting at the terminal ready to read
> it.

In Gnus, you can set up an `idle daemon' that only fires off when
there has been no interaction with the program for more than a
specified amount of time.  This allows for the auto-download new
article headers in a way that doesn't interfere with interactive
newsreading.

Do slrn or s-lang support subprocesses?  If not, such an idle daemon
would not be possible to write for slrn without significant redesign.
On the other hand, if some kind of subprocess support exists, perhaps
it wouldn't be prohibitively difficult to add such a thing to slrn.

-- 
 Lloyd Zusman
 ljz@asfast.com

Re: SLRN: Periodically check for new news?
#43958
Author: Dawn Owens-Nicholson
Date: Wed, 21 Oct 1998 00:00
12 lines
1164 bytes
Klaus Kettner wrote:
> I hate pressing "G" every 15 minutes just to check for
> new news. Is there a way to automate this?

Not in S-Lang or slrn currently.  I think this is a good thing because you
might not be ready to read news every time it would automatically fetch new
news. You could make a macro that gets new news every time you enter group
mode; this would get new news more frequently than every 15 minutes, but it
would not get new news when you're not sitting at the terminal ready to read
it.

Re: SLRN: Periodically check for new news?
#43967
Author: Dawn Owens-Nicholson
Date: Wed, 21 Oct 1998 00:00
23 lines
1845 bytes
Lloyd Zusman wrote:
> Do slrn or s-lang support subprocesses?

No, but in the S-Lang docs toward the end ("Future Directions") it says that
multi-threading is planned for the next major S-Lang release.

> On the other hand, if some kind of subprocess support exists, perhaps
> it wouldn't be prohibitively difficult to add such a thing to slrn.

You can have this functionality now if you don't mind doing it in a
different way.  Record the time (15 minutes from now) and event ("if
(is_group_mode ()) call("refresh_groups")") somewhere (say, a linked list)
and frequently go over the list to see what events are due to be executed
now.  Make this list iterator a function and call this function from macro
wrappers used frequently (i.e., a simple wrapper for call("next"),
call("delete"), call("undelete"); put it in hooks) and then approximately
every 15 minutes while you're generating keystrokes (while you're sitting
there reading news), you'll make slrn get new news.

It's a pretty elaborate way to save you a keystroke, but maybe there are
some other events you wouldn't mind automating like this.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads