Eliminate play-again prompt in curses mode.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 14 Aug 2023 10:46:29 +0000 (06:46 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 14 Aug 2023 10:46:29 +0000 (06:46 -0400)
sst

diff --git a/sst b/sst
index 4ca8e6577187abcc7d8cb61e368c3dd80269db8c..66a6616f697b35654935d4c7ae753cd6f0ba1e30 100755 (executable)
--- a/sst
+++ b/sst
@@ -6843,7 +6843,8 @@ if __name__ == '__main__':
                 if replayfp:
                     break
                 skip(1)
-                stars()
+                if (game.options & OPTION_TTY):
+                    stars()
                 skip(1)
                 if game.tourn and game.alldone:
                     proutn(_("Do you want your score recorded?"))
@@ -6852,8 +6853,11 @@ if __name__ == '__main__':
                         scanner.push("\n")
                         freeze(False)
                 scanner.chew()
-                proutn(_("Do you want to play again? "))
-                if not ja():
+                if (game.options & OPTION_TTY):
+                    proutn(_("Do you want to play again? "))
+                    if not ja():
+                        break
+                else:
                     break
             skip(1)
             prout(_("May the Great Bird of the Galaxy roost upon your home planet."))