From 2c732885c6a5980298fe1884c30bf01c5c048695 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Fri, 6 Dec 2019 13:21:36 -0700 Subject: [PATCH] Revert "Adjusted wk.std.input_text()" This reverts commit 564745f03bf96a4fcbcc32bbfda6b255f70e0663. --- scripts/wk/std.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/wk/std.py b/scripts/wk/std.py index 30a3c839..d0eecde4 100644 --- a/scripts/wk/std.py +++ b/scripts/wk/std.py @@ -785,20 +785,18 @@ def input_text(prompt='Enter text'): response = None if prompt[-1:] != ' ': prompt += ' ' - print(prompt, end='', flush=True) while response is None: if os.name == 'posix': # Flush input to (hopefully) avoid EOFError tcflush(sys.stdin, TCIOFLUSH) try: - response = input() + response = input(prompt) LOG.debug('%s%s', prompt, response) except EOFError: # Ignore and try again - #LOG.warning('Exception occured', exc_info=True) - #print('', end='', flush=True) - pass + LOG.warning('Exception occured', exc_info=True) + print('', flush=True) return response