Mines game for 3b1

David T. Sandberg dts at quad.uucp
Thu Oct 19 21:27:54 AEST 1989


In article <7256 at sdcsvax.UCSD.Edu> bjarrett at ucsd.edu (Brooke Jarrett) writes:
:In article <10291 at cbnews.ATT.COM> tjl at cbnews.ATT.COM (Timothy J. Lipetz,59365,cb,3d235,6148605439) writes:
:>>>Seems to work fine for me, except that I can't tell where the mouse is 
:>>>pointing. The arror shows up in the margins, but dissapears when it gets
:>>>onto the playing field. When I start it up, what appears to be part of
:>>>a terminal escape sequence appears in the upper left corner, but it is 
:
:I have compiled Mines just as it came to me, and have run it both from
:the shell prompt, and from the windowing system toybox (for my kids),
:I have seen none of these problems in my version.
:	I am running a 3B1 with 2Meg RAM, 67 Meg HD, and version 3.51 of
:the OS.  Is it just dumb luck?  What's going on.

A note - the terminal escape sequence which is appearing on some
people's screens is intended to clear the screen and turn the cursor
off.  But when it got to my site (and apparently to others), it was
goofed up.  It looked like the escape character had been embedded
directly in the source, as opposed to specified as an octal constant.
Big mistake... I suppose the escape character got stripped out at
some site along the line.

The original line in the source is:

	wputs(wn,"[2J[=1C");

and should be changed to

        wputs(wn,"\033[2J\033[=1C");

However, I had no problems with the mouse arrow even before I made
this fix.  The correct escape sequence just cleans up the display
a little better.

-- 
                                  David Sandberg - Quadric Systems
 "I began neglecting my shoes."   PSEUDO: dts at quad.uucp
                                  ACTUAL: ..uunet!rosevax!sialis!quad!dts



More information about the Unix-pc.sources mailing list