diff options
Diffstat (limited to 'stdlib.py')
| -rwxr-xr-x | stdlib.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -172,16 +172,16 @@ def ainputf(str: str, end='', ccolor=ascii.color.purple): return input() def input(*arg): - import readline - from builtins import input - input(*arg) + import readline + from builtins import input + return input(*arg) def askinput(str: str, inputter=ainputf, ccolor=ascii.color.blue): return inputter(f"{ccolor}[?] {str}{ascii.color.reset}") def keepasks(info: str, inputter=ainputf, *inputargs): tmprespond = "" - while tmprespond == "" or tmprespond == " " or tmprespond is None: + while tmprespond == "" or tmprespond == " " or tmprespond is None or not tmprespond: tmprespond = inputter(info, *inputargs) return tmprespond |
