Article View: news.software.readers
Article #3712Re: Building a newsreader, or reinventing the wheel?
From: Linus Tolke Y
Date: Fri, 26 Mar 1993 12:21
Date: Fri, 26 Mar 1993 12:21
81 lines
4717 bytes
4717 bytes
In article <C41Gy3.J8n@law7.DaytonOH.NCR.COM>
jra@law7.DaytonOH.NCR.COM (John Ackermann x 2966) writes:
Newsgroups: news.software.readers
From: jra@law7.DaytonOH.NCR.COM (John Ackermann x 2966)
Here's the deal: I run a unix system that ham radio operators can
access via the radio, running the TCP/IP protocol stack on top of the
AX.25 protocol. They can use telnet to log into my system.
Here's the problem: the radio channels are very slow, and are half
duplex to boot. Most users operate at 1200 baud, and the effective
throughput is something like 20 or 30 characters per second. A few
brave souls have radios that operate at 19.2KB, but even there the
throughput is only about 500-600 cps, half duplex.
Real optimistics! :-) I have gotten used to the 9600+ environment.
nn would be a good choice as far as bandwidth goes, but it requires
nn really is short for no news and it is a good choise only if you
read only a few of the articles in every group. If you usually read
all or almost all newsgroups at low baudrates there are competitive
alternatives.
uncooked keyboard input.
Well, I don't know of a newsreader that really can do this but rn (or
trn) has a feature that might work.
rn is a very much older reader than nn and has been used for quite a
few years. trn is a version that threads the news, not really like nn
that just retrieves the subject lines (and some other infor) to be
able to show them quickly but sorts depending on the contents of the
references field so that you can get trees of comments. You then read
in a depth-first-order and not the nn time of arrival order.
The feature I am thinking about is turned off with -T. This probably
makes it possible to type all commands as command RETURN.
From the trn manual:
-T allows you to type ahead of rn. Ordinarily rn will eat
typeahead to prevent your autorepeating space bar from
doing a very frustrating thing when you accidentally
hold it down. If you don't have a repeating space bar,
or you are working at low baud rate, you can set this
switch to prevent this behavior. You may wish to use
the baud-rate switch modifier below to disable typea-
head only at lower baud rates.
This works in this way:
Most commands are one character commands. When we recieve a command
the commands is (optionally echoed -v option) and then the command is
executed, the screen is updated and the prompt is written.
Then the input buffer is emptied (in your case this could read the
extra RETURN/LINEFEED whatever.)
And then we hang waiting for the next command.
That still means, though, that I've got to figure out how to process the
.newsrc file and create the info to be displayed with ipick, and then
pipe the selected articles into a pager for display.
Wouldn't it be much easier to rewrite nn or trn to fill your
requirements.
Before I begin this process, a) can anyone point me to a newsreader that
would meet the uncooked input and low bandwidth requirements, or b) give
me any pointers on the structure I should use to build one?
There are low baudrate features in the original rn but I don't know
how the news threaded menus are at low baudrate, I think they loose
some, they are optimized for nice presentation and to show as many
articles as possible on every screen.
My advice is: Try it to see if it can do what you want and if you want
to rewrite something to do what you want, rewrite (t)rn, not nn.
--
/Linus
***** Wherever I exec my `which emacs`, is my $HOME. *****
Linus Tolke SM7OUU, linus@lysator.liu.se
Student at the member of SK5EU LiTHSA
Link|ping institute of technology, LiTH LiTH S{ndare Amat|rer (Ham-club)
Technical Details
Message-ID:
<LINUS.93Mar26132115@bodil.lysator.liu.se>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!news.tele.fi!sunic!liuida!isy!lysator.liu.se!news.lysator.liu.se!linusReferences:
<C41Gy3.J8n@law7.DaytonOH.NCR.COM>Show Full Headers
Complete Article Headers
Message-ID: <LINUS.93Mar26132115@bodil.lysator.liu.se> Subject: Re: Building a newsreader, or reinventing the wheel? Date: Fri, 26 Mar 1993 12:21:15 GMT From: linus@lysator.liu.se (Linus Tolke Y) References: <C41Gy3.J8n@law7.DaytonOH.NCR.COM> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!news.tele.fi!sunic!liuida!isy!lysator.liu.se!news.lysator.liu.se!linus Newsgroups: news.software.readers In-Reply-To: jra@law7.DaytonOH.NCR.COM's message of Wed, 17 Mar 1993 15:13:14 GMT To: jra@law7.DaytonOH.NCR.COM (John Ackermann x 2966) Sender: news@lysator.liu.se Bcc: linus Organization: Lysator Academic Computer Society, Link|ping University Lines: 81