Improved console

This commit is contained in:
Sven Heidemann 2021-03-10 09:04:53 +01:00
parent 59206dbc32
commit 221017ae7e

View File

@ -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)