Improved console
This commit is contained in:
parent
59206dbc32
commit
221017ae7e
@ -175,7 +175,7 @@ class Console:
|
|||||||
return ''
|
return ''
|
||||||
|
|
||||||
if output is not None:
|
if output is not None:
|
||||||
cls.write(output)
|
cls.write_line(output)
|
||||||
|
|
||||||
return input()
|
return input()
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ class Console:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def spinner(cls, message: str, call: Callable, *args) -> any:
|
def spinner(cls, message: str, call: Callable, *args) -> any:
|
||||||
if cls._hold_back:
|
if cls._hold_back:
|
||||||
cls._hold_back_calls.append(ConsoleCall(cls.spinner, message, call))
|
cls._hold_back_calls.append(ConsoleCall(cls.spinner, message, call, *args))
|
||||||
return
|
return
|
||||||
|
|
||||||
cls.write_line(message)
|
cls.write_line(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user