main
Bob Mottram 2021-03-04 15:27:27 +00:00
parent 60c5193943
commit 7feaabe764
1 changed files with 3 additions and 2 deletions

View File

@ -25,9 +25,10 @@ def _waitForKeypress(timeout: int, debug: bool) -> str:
i, o, e = select.select([sys.stdin], [], [], timeout) i, o, e = select.select([sys.stdin], [], [], timeout)
if (i): if (i):
text = sys.stdin.readline().strip()
if debug: if debug:
print("Text entered: " + sys.stdin.readline().strip()) print("Text entered: " + text)
return sys.stdin.readline().strip() return text
else: else:
if debug: if debug:
print("Timeout") print("Timeout")