Path: utzoo!attcan!uunet!husc6!uwvax!rutgers!ucsd!ames!killer!tness7!ninja!sys1!techsup!cpe!neese
From: neese@cpe.UUCP
Newsgroups: comp.sources.games.bugs
Subject: Re: Spacewar running on ULTRIX 2.0
Message-ID: <12600001@cpe>
Date: 1 Jul 88 18:52:00 GMT
References: <448@cf-cm.UUCP>
Lines: 22
Nf-ID: #R:cf-cm.UUCP:448:cpe:12600001:000:1005
Nf-From: cpe.UUCP!neese    Jul  1 13:52:00 1988


>	Also we get what looks like control characters coming through,
>	lots of fives and threes - Are these "reverse" "normal"
>	display characters.
>
>	We'd like to know if anyone else gets these problems and how
>	they solved them.

The 3's and 5's are the pad characters in the termcap.  Spacewar writes
directly to the terminal via 'write' but firsts builds a strings with which
to write.  The string will contain the things that tgetstr got when the
terminal was inititialized.  You can solve the problem by deleting the pad
numbers from the termcap, but them you may end up with other problems, i.e.
the terminal may not be able to do un/reverse video fast enough to keep up
and you will end up trash on the display anyway.  The correct thing to do,
for the sake of portability, is to redo the code that updates the display
so as not to 'write' to the tty, but use normal methods to get the data on
the terminal.  This is just an opinion not a flame.


						Roy Neese
					UUCP @	ihnp4!sys1!cpe!neese