🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #5864

Re: Tin 1.21: Check Prepared Article screen

#5864
From: Colin Perkins
Date: Thu, 16 Sep 1993 19:24
64 lines
2735 bytes
Pope Clifton (cliftonr@netcom.com) wrote:
>The following patch fixes formatting of the article checking screen.  Seems
>to be needed only for Sun OS + xterms/Vt10xs.  Go figure.
>  -- Clifton

This also fixes the problem on a NeXT...

Colin Perkins
<csp@ohm.york.ac.uk>

-----------------------------------------------------------------------------
>*** tin-1.21o/post.c	Tue Jul 20 16:33:50 1993
>--- myrevs/post.c	Fri Jul 30 21:25:40 1993
>***************
>*** 164,169 ****
>--- 164,170 ----
>  	int init = TRUE;
>  	int ngcnt = 0;
>  	int nglens[NGLIMIT];
>+ 	int oldraw;	/* To save previous raw status */
>  
>  	if ((fp = fopen (article, "r")) == (FILE *) 0) {
>  		perror_message (txt_cannot_open, article);
>***************
>*** 170,175 ****
>--- 171,177 ----
>  		return FALSE;
>  	}
>  
>+ 	oldraw = RawState(); /* save state */
>  	while (fgets (line, sizeof (line), fp) != NULL) {
>  		cnt++;
>  		len= strlen (line);
>***************
>*** 309,314 ****
>--- 311,317 ----
>  	}
>  	fclose (fp);
>  
>+ 	Raw( oldraw ); /* restore previous raw/unraw state */
>  	return (errors ? FALSE : TRUE);
>  }
>  
>***************
>*** 320,325 ****
>--- 323,329 ----
>  		ClearScreen ();
>  		center_line (0, TRUE, txt_check_article);
>  		MoveCursor (INDEX_TOP, 0);
>+ 		Raw( FALSE );	/* force raw mode for message display */
>  		*init = FALSE;
>  	}
>  }


>--
>cliftonr@netcom.com is Clifton Royston is Pope of the Church of the Subgenius 
>in Paradise is a happily married man is a programmer is a structural fiction.
>"If we were materialists we would hoard things. We are not. We are nihilists, 
>and we pride ourselves on the rate at which we destroy."        (Tom Boutell)
-- 
Colin Perkins 				
Computer Systems Engineering Group,	Email: csp@ohm.york.ac.uk
University of York, YO1 5DD, UK.	Phone: +44 904 432379
Technical Details
Message-ID: <1993Sep16.192440.13561@ohm.york.ac.uk>
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!gmd.de!rrz.uni-koeln.de!unidui!math.fu-berlin.de!umn.edu!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!pipex!uknet!yorkohm!csp
References: <CDCp2D.yw@uk.ac.brookes> <cliftonrCDD0IL.7tz@netcom.com> <CDDr73.IyM@stortek.com> <cliftonrCDF7so.9wo@netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <1993Sep16.192440.13561@ohm.york.ac.uk>
Subject: Re: Tin 1.21: Check Prepared Article screen
Date: Thu, 16 Sep 1993 19:24:40 +0000
From: csp@ohm.york.ac.uk (Colin Perkins)
References: <CDCp2D.yw@uk.ac.brookes> <cliftonrCDD0IL.7tz@netcom.com> <CDDr73.IyM@stortek.com> <cliftonrCDF7so.9wo@netcom.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!gmd.de!rrz.uni-koeln.de!unidui!math.fu-berlin.de!umn.edu!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!pipex!uknet!yorkohm!csp
Newsgroups: news.software.readers
Organization: Computer Systems Engineering Group, University of York, UK.
X-Newsreader: TIN [version 1.2 PL1]
Lines: 64