From eeebb03ce5fcb54c7176d0bd6c5e81b09f72a3cd Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 1 Nov 2023 11:32:13 +0800 Subject: removed unnessary --- stdlib.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/stdlib.py b/stdlib.py index 3059fce..f2ff7cc 100755 --- a/stdlib.py +++ b/stdlib.py @@ -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() -- cgit v1.2.3