From: noahvawt@planet10.WPI.EDU (Noah Theodore Vawter)
Newsgroups: comp.unix.programmer
Subject: input
Date: 5 Nov 92 21:47:11 GMT
Organization: Worcester Polytechnic Institute
NNTP-Posting-Host: planet10.wpi.edu

Hello everyone!
I have written a moderately good shoot -em up game 
in C, for UNIX, but I have a problem...
I don't know how to scan the keyboard without
holding up the whole-entire program!
can someone help me out?
here is the source, incase anyone needs that
to see how I did the rest of the program...
p.s.  This is my first program in C,
so if anyone has any suggestions for improving
other parts of the program, fire away!  thanks a lot everyone!

begin 755 kaz.c
M+RH@4VAI9G1Y($1E871H($5F9F5C="!S=&%R=&5D(&)Y($YO86@@5F%W=&5R
M(&]N($AA;&QO=V5E;BP@,3DY,B J+PHO*B!3<&5C:6%L('1H86YK<R!T;R!0
M971E($MA>FUI97(@*B\*"B\J('-T=69F('1O(&%D9#H*(" @86QI96YS('1H
M870@<VAO;W0*(" @97AP;&]S:6]N<R!F;W(@86QI96YS('=H96X@:&ET"B @
M(&)E='1E<B!K97EB;V%R9"!R;W5T:6YE"B @(&UO<F4@<F%N9&]M('!L86-E
M;65N= H@("!B971T97(@86QG;W)I=&AI;2!F;W(@86QI96YS(&%P<&5A<FEN
M9PH@("!N;RUB;&EN:R!E<F%S92!R;W5T:6YE"B @("HO"B-I;F-L=61E(#QS
M=&1I;RYH/@HC:6YC;'5D92 \8W5R<V5S6"YH/B @(" @(" O*B!5;'1R:7@@
M=7-E<R!C=7)S97-8(&YO="!C=7)S97,@*B\*(V1E9FEN92!32$]44R V(" @
M+RH@9&]N)W0@9F]R9V5T('-H;W1S/5-(3U13+3$@(2HO"B-D969I;F4@4TA)
M4%D@,34*(V1E9FEN92!224=(5$5$1T4@-# *(V1E9FEN92!,1494141'12 Q
M, HC9&5F:6YE(%1/4" S"B-D969I;F4@04Q)14Y"05-%345.5" Q,PHC9&5F
M:6YE($%,245.4R R, II;G0@<V-O<F4["G9O:60@;6%I;B H=F]I9"D*>PH@
M(&EN="!S:%]F;&%G6U-(3U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H9FQA9UM=+"!I;G0@<VAO='A;72P@:6YT('-H;W1Y6UTI"GL*
M("!C:'1Y<&4@=VED9V5T.PH@('=I9&=E=" ](&=E=&-H*"D["B @8VQE87(H
M*3L*(" O*B!P=71C:" H=VED9V5T*3L@*B\*("!I9B H=VED9V5T(#T]("=J
M)RD@"B @("!["B @(" @("IS:'!X(#T@*G-H<'@@+2 R.PH@(" @("!I9B H
M*G-H<'@@/"!,1494141'12D*"2IS:'!X(#T@3$5&5$5$1T4["B @("!]"B @
M:68@*'=I9&=E=" ]/2 G:R<I"B @("!["B @(" @("IS:'!X(#T@*G-H<'@@
M*R R.PH@(" @("!I9B H*G-H<'@@/B!224=(5$5$1T4I"@DJ<VAP>" ](%))
M1TA4141'13L*(" @('T*"B @:68@*'=I9&=E=" ]/2 G82<I+RH@<VAO="!I
M<R!F:7)E9"$@*B\*(" @('L*(" @(" @:6YT(&QO;W ["B @(" @(&9O<B H
M;&]O<" ](#$[(&QO;W @/" H4TA/5%,I(#L@;&]O<"LK*0H)>PH)("!I9B H
M<VAF;&%G6VQO;W!=("$](#$I"@D@(" @>PH)(" @(" @<VAF;&%G6VQO;W!=
M(#T@,3L*"2 @(" @('-H;W1X6VQO;W!=(#T@*G-H<'@["@D@(" @("!S:&]T
M>5ML;V]P72 ]("A32$E062TQ*3L*"2 @(" @(&)R96%K.PH)(" @('T*"7T*
M(" @('T*?0H*=F]I9"!D<F%W7W-H;W1S("AI;G0@<VAF;&%G6UTL(&EN="!S
M:&]T>5M=+"!I;G0@<VAO='A;72D*>PH@(&EN="!L;V]P.PH@(&9O<B H;&]O
M<#TQ(#L@;&]O<" \("A32$]44RD[(&QO;W K*RD*(" @('L*(" @(" @:68@
M*'-H9FQA9UML;V]P72 ]/2 Q*0H)>PH)("!M;W9E("AS:&]T>5ML;V]P72P@
M<VAO='A;;&]O<%TI.PH)("!P<FEN='<H(GPB+&QO;W I.PH)?0H@(" @?0I]
M"@IV;VED(&UO=F5?<VAO=',@*&EN="!S:&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B @("!]"GT*"G9O:60@<VAO
M=U]S8V]R92@I"GL*("!M;W9E*%-(25!9*S$L4DE'2%1%1$=%*3L*("!P<FEN
M='<H(B5D(BQS8V]R92D["GT*"G9O:60@861D7V%L:65N<R H:6YT(&%L7V9L
M86=;72P@:6YT(&%L7WE;72P@:6YT(&%L7WA;72D*>PH@(&EN="!L;V]P+"!U
M<V5D6T%,245.4UT["B @9F]R("AL;V]P/3$[;&]O<#Q!3$E%3E,K,3ML;V]P
M*RLI"B @("!["B @(" @(&EF("AA;%]F;&%G6VQO;W!=("$],2D*"7L*"2 @
M86Q?9FQA9UML;V]P72 ],3L*"2 @86Q?>5ML;V]P72 ](%1/4"LR.PH)("!A
E;%]X6VQO;W!=(#T@,C,["@D@(&)R96%K.PH)?0H@(" @?0I]"BLR
 
end

       o      
        o     There is no Earth!  Gravity sucks!
   ___ o                 
|\/  o\ o     Call your vision at noahvawt@wpi.wpi.edu                  
|/\___/       Headquarters of:  The Shifties