X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=os2.c;h=e419e297c733dbf608cc98e145709247a6ba346d;hp=ca0eb54264c33687bceb26f3d16abbac308a2888;hb=03ea69145938e4b01e7efc6be80a543bad1739c7;hpb=404aca234d55a8d9ba7b6573b3c100c940b42fe8 diff --git a/os2.c b/os2.c index ca0eb54..e419e29 100644 --- a/os2.c +++ b/os2.c @@ -1,7 +1,5 @@ #include #include -#include -#include void randomize(void) { srand((int)time(NULL)); @@ -17,15 +15,3 @@ int min(int a, int b) { if (a < b) return a; return b; } - -int getch(void) { - char chbuf[1]; - struct termio oldstate, newstate; - ioctl(0,TCGETA,&oldstate); - newstate = oldstate; - newgame.state.c_iflag = 0; - newgame.state.c_lflag = 0; - ioctl(0,TCSETA,&newstate); - read(0, &chbuf, 1); - ioctl(0,TCSETA,&oldstate); -} \ No newline at end of file