From: Eric S. Raymond Date: Sat, 25 Feb 2017 11:06:14 +0000 (-0500) Subject: Fix bug in capture. X-Git-Tag: 2.2~32 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=9303f5dc57ad9cf7580d6ed355020b9762f1aff0;p=super-star-trek.git Fix bug in capture. --- diff --git a/sst.py b/sst.py index 2cc711b..cef7b8f 100755 --- a/sst.py +++ b/sst.py @@ -2148,7 +2148,7 @@ def capture(): return # big surprise, he refuses to surrender */ - prout(_("Fat chance, captain!")) + prout(_("Fat chance, captain!")) # Code from events.c begins here. @@ -3483,7 +3483,11 @@ def cgetline(): elif linein[0] != "#": break else: - linein = my_input() + "\n" + try: + linein = my_input() + "\n" + except EOFError: + prout("") + sys.exit(0) if logfp: logfp.write(linein) return linein