[comp.windows.news] Bug in psterm...

siegel@hc.DSPO.GOV (josh Siegel) (10/06/88)

Below is a report and not a fix to a bug in psterm....

Seems psterm tries to optimise the work in does on the screen
and messes up.  The code below is for a psterm running the
sun termcap.  It is just a editing sequence on a single line.
One thing to notice is that the faster the sequence comes out,
the worse it looks.  at 0 it is VERY bad, and 50000 it is bad,
at 100000 it is getting there and at 200000 it is exactly what
it should look like.

Anybody have any fixes for this yet?

		thanks much...
			--Josh Siegel

----
char script[]={109, 97, 105, 108, 114, 99, 8, 8, 8, 8, 27, 91, 64, 
	116, 105, 8, 27, 91, 64, 104, 105, 8, 105, 27, 91, 64, 105,
	108, 8, 8, 27, 91, 64, 115, 105, 8, 27, 91, 64, 32, 105, 8, 
	105, 27, 91, 64, 105, 108, 8, 8, 27, 91, 64, 115, 105, 8, 
	27, 91, 64, 32, 105, 8, 27, 91, 64, 97, 105, 8, 27, 91, 
	64, 32, 105, 8, 27, 91, 64, 116, 105, 8, 27, 91, 64, 101, 
	105, 8, 27, 91, 64, 115, 105, 8, 27, 91, 64, 116, 105, 8, 
	13, 13, 10, 0};

main(argc,argv)
int argc;
char *argv[];
{
	char c,*p;
	int sl;

	if(argc>1)
		sl = atoi(argv[1]);
	else
		sl = 0;

	p = script;

	while((c = *p++)!=0) {
		write(1,&c,1);
		usleep(sl);
	}
}
-- 
Josh Siegel		(siegel@hc.dspo.gov)
I like using a C-47A "puff dragon" to go shooting beer cans with.

don@BRILLIG.UMD.EDU (Don Hopkins) (10/07/88)

You're right -- there really is a bug in psterm!

Two questions, though: Who's mathis? What's a testilrc?

At least it didn't pop up any windows or fork off any Unix processes!
c(-; 

	-Don