mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
60c5193943
commit
7feaabe764
|
@ -25,9 +25,10 @@ def _waitForKeypress(timeout: int, debug: bool) -> str:
|
|||
i, o, e = select.select([sys.stdin], [], [], timeout)
|
||||
|
||||
if (i):
|
||||
text = sys.stdin.readline().strip()
|
||||
if debug:
|
||||
print("Text entered: " + sys.stdin.readline().strip())
|
||||
return sys.stdin.readline().strip()
|
||||
print("Text entered: " + text)
|
||||
return text
|
||||
else:
|
||||
if debug:
|
||||
print("Timeout")
|
||||
|
|
Loading…
Reference in New Issue