Better wrapup on replays.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 10 Oct 2006 10:03:10 +0000 (10:03 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 10 Oct 2006 10:03:10 +0000 (10:03 +0000)
src/sst.py

index 3b395ee1c7a9395e75ad6a74aa579d5be4fb52e0..103e49fa90c9a7d5a4c02bcb206bcd80f83b3010 100644 (file)
@@ -3342,11 +3342,12 @@ def iostart():
        setwnd(fullscreen_window)
 
 def ioend():
-    "Wrap up I/O.  Presently a stub."
-    stdscr.keypad(False)
-    curses.echo()
-    curses.nocbreak()
-    curses.endwin()
+    "Wrap up I/O."
+    if game.options & OPTION_CURSES:
+        stdscr.keypad(False)
+        curses.echo()
+        curses.nocbreak()
+        curses.endwin()
 
 def waitfor():
     "Wait for user action -- OK to do nothing if on a TTY"