🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #5838

Re: Tin 1.21: Check Prepared Article screen

#5838
From: Pope Clifton
Date: Thu, 16 Sep 1993 00:24
53 lines
2267 bytes
The following patch fixes formatting of the article checking screen.  Seems
to be needed only for Sun OS + xterms/Vt10xs.  Go figure.
  -- Clifton

*** 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)
Technical Details
Message-ID: <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!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!uwm.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!netcomsv!netcom.com!cliftonr
References: <CDCp2D.yw@uk.ac.brookes> <cliftonrCDD0IL.7tz@netcom.com> <CDDr73.IyM@stortek.com>

Show Full Headers
Complete Article Headers
Message-ID: <cliftonrCDF7so.9wo@netcom.com>
Subject: Re: Tin 1.21: Check Prepared Article screen
Date: Thu, 16 Sep 1993 00:24:24 GMT
From: cliftonr@netcom.com (Pope Clifton)
References: <CDCp2D.yw@uk.ac.brookes> <cliftonrCDD0IL.7tz@netcom.com> <CDDr73.IyM@stortek.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!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!uwm.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!netcomsv!netcom.com!cliftonr
Newsgroups: news.software.readers
Organization: Dr. Anaconda's Solar Fun Club
X-Newsreader: TIN [version 1.2 PL1]
Lines: 53