curses interface is now partly working.
[super-star-trek.git] / sst.c
diff --git a/sst.c b/sst.c
index d35b2556ae1407f297b0088838a2c5124b1140c0..8d82100865f63fd1a37f9581e18906a7cc703939 100644 (file)
--- a/sst.c
+++ b/sst.c
@@ -348,8 +348,8 @@ int main(int argc, char **argv) {
        int hitme;\r
        char ch;\r
 \r
-       prelim(); \r
        iostart();\r
+       prelim(); \r
        line[0] = '\0';\r
        if (argc > 1) {\r
                while (--argc > 0) {\r
@@ -380,7 +380,8 @@ int main(int argc, char **argv) {
                if (!ja()) break;\r
        }\r
        skip(1);\r
-       prout("May the Great Bird of the Galaxy roost upon your home planet.");\r
+       ioend();\r
+       puts("May the Great Bird of the Galaxy roost upon your home planet.");\r
 }\r
 \r
 \r
@@ -478,7 +479,7 @@ int scan(void) {
                        chew();\r
                        return IHEOL;\r
                }\r
-               fgets(line, sizeof(line), stdin);\r
+               getline(line, sizeof(line));\r
                line[strlen(line)-1] = '\0';\r
                linep = line;\r
        }\r