From: Eric S. Raymond Date: Tue, 10 Oct 2006 10:03:10 +0000 (+0000) Subject: Better wrapup on replays. X-Git-Tag: 2.0~91 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=9bb286f638aae37a21d25d3a2a4cb8f11deb22cc;p=super-star-trek.git Better wrapup on replays. --- diff --git a/src/sst.py b/src/sst.py index 3b395ee..103e49f 100644 --- a/src/sst.py +++ b/src/sst.py @@ -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"