From 614de766fa8b37336f562d07fff11d893fd2cc25 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 14 Aug 2023 06:46:29 -0400 Subject: [PATCH] Eliminate play-again prompt in curses mode. --- sst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sst b/sst index 4ca8e65..66a6616 100755 --- 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.")) -- 2.31.1