vedm@hoqam.UUCP (BEATTIE) (02/03/86)
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) Suggestions/fixed code anyone?? Tom. ...!{decvax | ucbvax}!ihnp4!hoqax!twb
rcj@burl.UUCP (Curtis Jackson) (02/04/86)
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