From: Eric S. Raymond Date: Mon, 14 Aug 2023 10:46:29 +0000 (-0400) Subject: Eliminate play-again prompt in curses mode. X-Git-Tag: 2.8~45 X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=commitdiff_plain;h=614de766fa8b37336f562d07fff11d893fd2cc25 Eliminate play-again prompt in curses mode. --- 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."))