🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.notes
Article #79

Re: notes at 1200 baud is slow! - (nf)

#79
From: utzoo!decvax!cca!mclure
Date: Wed, 08 Sep 1982 18:14
43 lines
1860 bytes
#R:sri-unix:1000018:sri-unix:1000020:000:1396
sri-unix!mclure    Sep  8 18:12:00 1982

For systems running UCB kernels with FIONREAD ioctl support, a few
lines of code in prtind.c and dsply.c will greatly alleviate the
problem of using notes at slower baud rates.  The form of ioctl below
determines whether there is input waiting.  We do it after each
note/response & index line is displayed.  If input is waiting, we skip
any further output.

Unfortunately Notes is always in echo mode so this can cause the
display to get slightly garbled sometimes (no big deal since it could
get garbled before the change too).  Notes also blanks between the
index-drawing and note/response-drawing operations, so it's only a
nuisance.  The solution is to hack Notes so that it is in no-echo mode
during these times and echos input at the proper points.  We haven't
done this yet but it is next on the list.

	Stuart

*** Diff of old prtind.c and new prtind.c
1a2
> #include	<sys/ioctl.h>
24a26
>     long    retval;
86a89,92
> 	if (ioctl(0,FIONREAD,&retval)) /* If this call fails */
> 	    ;				/* Assume no input waiting */
> 	else if (retval)
> 	    return;		/* Otherwise, he typed */

*** Diff of old dsply.c and new dsply.c
1a2
> #include	<sys/ioctl.h>
234a236
>     long    retval = 0;
257a260,263
> 		if (ioctl(0,FIONREAD,&retval)) /* If this call fails */
> 		    ;				/* Assume no input waiting */
> 		else if (retval)
> 		    goto exisho;		/* Otherwise, he typed */
287a294
> exisho:
Technical Details
Message-ID: <bnews.sri-unix.3175>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
From: utzoo!decvax!cca!mclure@sri-unix
Newsgroups: net.notes
Title: Re: notes at 1200 baud is slow! - (nf)
Article-I.D.: sri-unix.3175
Posted: Wed Sep  8 18:14:21 1982
Received: Fri Sep 10 06:14:45 1982
Subject: Re: notes at 1200 baud is slow! - (nf)
Date: Wed, 08 Sep 1982 18:14:21 +0000
Message-ID: <bnews.sri-unix.3175>