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)
|
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")
|
||||||
|
|
Loading…
Reference in New Issue