Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site burl.UUCP Path: utzoo!watmath!clyde!burl!rcj From: rcj@burl.UUCP (Curtis Jackson) Newsgroups: net.sources.bugs Subject: Re: Another (but completely different) snake game Message-ID: <1000@burl.UUCP> Date: Mon, 3-Feb-86 22:29:09 EST Article-I.D.: burl.1000 Posted: Mon Feb 3 22:29:09 1986 Date-Received: Wed, 5-Feb-86 01:12:26 EST References: <120@nbs-amrf.UUCP> <219@hoqam.UUCP> Reply-To: rcj@burl.UUCP (Curtis Jackson) Distribution: net Organization: AT&T Technologies, Burlington NC Lines: 24 Summary: In article <219@hoqam.UUCP> vedm@hoqam.UUCP (BEATTIE) writes: >Does anyone know how to get snake2 to work under system V.2. >I would also like to use it on my unixpc. >Problems I ran into: > >1. No real quick_sleep - maybe a for loop could accomplish this?? >2. getkey.c needs FIONREAD (ioctl) > I have a solution to (1), since snake2 only uses a quarter-second timeout (thanks to Robert Toxen's tick* routines); but NOTE THAT IT IS A BUSY WAIT, NOT A TRUE IDLE WAIT. IT WILL PROBABLY KILL YOUR CPU. As for (2), I can fix that one, too. I am going to have to fly to Minneapolis tomorrow to give a 2-day class on a language I wrote, so I won't be able to touch this until at least Friday. If I get snake2 working for SVR2, I'll post the source (with #ifdef SYS5 for the new stuff) to net.sources. -- The MAD Programmer -- 919-228-3313 (Cornet 291) alias: Curtis Jackson ...![ ihnp4 ulysses cbosgd mgnetp ]!burl!rcj ...![ ihnp4 cbosgd akgua masscomp ]!clyde!rcj