diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-11-01 11:32:13 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-11-01 11:32:13 +0800 |
| commit | eeebb03ce5fcb54c7176d0bd6c5e81b09f72a3cd (patch) | |
| tree | 90e562a0f6d7cec2bec2a2fa34b0922df7fcdcce | |
| parent | 70fd964077663067ccb589deac468e40a8482817 (diff) | |
removed unnessary
| -rwxr-xr-x | stdlib.py | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -1,12 +1,5 @@ #!/dev/null -# imports -from rich.console import Console as console -from rich.syntax import Syntax as syntax -from rich import print as rprint -from argparse import ArgumentParser as arg - - # text ascii codes class ascii: ### ASCII @@ -175,8 +168,13 @@ def printerror(str: str, outputter=aprintf, ccolor=ascii.color.red, end=None): def ainputf(str: str, end='', ccolor=ascii.color.purple): aprintf(str, end=end) + import readline return input() +def input(*arg): + import readline + input(*arg) + def askinput(str: str, inputter=ainputf, ccolor=ascii.color.blue): return inputter(f"{ccolor}[?] {str}{ascii.color.reset}") @@ -273,4 +271,4 @@ def sigcatch(sig, error=None, sysexit=False, handler=None): if __name__ == '__main__': from stdlib import * from test import tests - tests()
\ No newline at end of file + tests() |
