Make the internal pager actually work. In the process, remove getch()
[super-star-trek.git] / linux.c
diff --git a/linux.c b/linux.c
index 9bd3b13e45464f8b891b39e671bf08e429c526ad..708f933eb51df9f39ddee8e58e2235def8e6e7bd 100644 (file)
--- a/linux.c
+++ b/linux.c
@@ -1,6 +1,5 @@
 #include <stdlib.h>
 #include <time.h>
-#include <sys/ioctl.h>
 
 void randomize(void) {
        srand((int)time(NULL));
@@ -17,15 +16,3 @@ int min(int a, int b) {
        return b;
 }
 
-int getch(void) {
-       char chbuf[1];
-       struct termio oldstate, newstate;
-    ioctl(0,TCGETA,&oldstate);
-       newstate = oldstate;
-       newstate.c_iflag = 0;
-       newstate.c_lflag = 0;
-       ioctl(0,TCSETA,&newstate);
-       read(0, &chbuf, 1);
-    ioctl(0,TCSETA,&oldstate);
-}
-