Input capture to 'sst-input.log' now happens automatically when idebug is on.
[super-star-trek.git] / src / io.c
index 7b4855f6c88048b78890a477733ae6757018bf96..5d4ea9a13154752c0ed904fc55f3116ee41fb936 100644 (file)
--- a/src/io.c
+++ b/src/io.c
@@ -38,13 +38,13 @@ void iostart(void)
     textdomain(PACKAGE);
     gettext("");
 
+    if (atexit(outro)){
+       fprintf(stderr,"Unable to register outro(), exiting...\n");
+       exit(1);
+    }
     if (!(game.options & OPTION_CURSES)) {
        rows = atoi(getenv("LINES"));
     } else {
-       if (atexit(outro)){
-           fprintf(stderr,"Unable to register outro(), exiting...\n");
-           exit(1);
-       }
        (void)initscr();
 #ifdef KEY_MIN
        keypad(stdscr, TRUE);