🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by John Ackermann x 2966 Wed, 17 Mar 1993 15:13
Building a newsreader, or reinventing the wheel?
#3569
Author: John Ackermann x 2966
Date: Wed, 17 Mar 1993 15:13
48 lines
2997 bytes
I want to provide a usenet newsreader for my users, but have a very
unique environment that, I think, makes none of the available
newsreaders very practical.

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.

This means, among other things, that telnet operation has to be in
linemode rather than uncooked (character by character) mode; the overhead
of all those 1 character packets is just too great for the channel to
handle.  And, of course, the limited bandwidth means that we need to
send as little data as possible.  The one bit of good news is that I'm
contemplating carrying only a small newsfeed... just the rec.radio and
sci.electronics groups to begin with.  So efficiency of the reader isn't
too critical.

nn would be a good choice as far as bandwidth goes, but it requires
uncooked keyboard input.  I've posted to the nn newsgroup several times
asking whether it would be possible to configure nn to use cooked input,
but I've never had a response.

Anyway, I've concluded that maybe I need to write something myself.  The
"ipick" program seems to offer a good core -- fed the proper input, it
could display an nn-style screen and let users pick (with uncooked
commands) the messages they want to read.

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.

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?

Thanks!


-- 
John R. Ackermann, Jr.         Law Department, NCR Corporation, Dayton, Ohio
(513) 445-2966		       John.Ackermann@daytonoh.ncr.com
Packet Radio: ag9v@n8acv.oh    tcp/ip: ag9v@ag9v.ampr [44.70.12.232]
Re: Building a newsreader, or reinventing the wheel?
#3712
Author: Linus Tolke Y
Date: Fri, 26 Mar 1993 12:21
81 lines
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)
Re: Building a newsreader, or reinventing the wheel?
#3732
Author: Jesper Lauridsen
Date: Sat, 27 Mar 1993 19:34
16 lines
1528 bytes
linus@lysator.liu.se (Linus Tolke Y) writes:

>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.

nn does NOT sort on arrival date (unless you explictly ask it to).
It sorts on subject and within the same subject articles are sorted
according to posting date (wierd date formats may give problems 
here).
-- 
Jesper Lauridsen        |  I survived the rec.arts.sf-lovers split
rorschak@daimi.aau.dk   | 
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