Make the internal pager actually work. In the process, remove getch()
[super-star-trek.git] / os2.c
diff --git a/os2.c b/os2.c
index ca0eb54264c33687bceb26f3d16abbac308a2888..e419e297c733dbf608cc98e145709247a6ba346d 100644 (file)
--- a/os2.c
+++ b/os2.c
@@ -1,7 +1,5 @@
 #include <stdlib.h>\r
 #include <time.h>\r
-#include <sys/ioctl.h>\r
-#include <sys/termio.h>\r
 \r
 void randomize(void) {\r
        srand((int)time(NULL));\r
@@ -17,15 +15,3 @@ int min(int a, int b) {
        if (a < b) return a;\r
        return b;\r
 }\r
-\r
-int getch(void) {\r
-       char chbuf[1];\r
-       struct termio oldstate, newstate;\r
-    ioctl(0,TCGETA,&oldstate);\r
-       newstate = oldstate;\r
-       newgame.state.c_iflag = 0;\r
-       newgame.state.c_lflag = 0;\r
-       ioctl(0,TCSETA,&newstate);\r
-       read(0, &chbuf, 1);\r
-    ioctl(0,TCSETA,&oldstate);\r
-}
\ No newline at end of file