From 064237904a52c300f1f16fb61607843a1a804332 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 10 Mar 2021 10:49:40 +0100 Subject: [PATCH] Improved console --- src/cpl/console/console.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cpl/console/console.py b/src/cpl/console/console.py index 7c8d74bc..8aad8af0 100644 --- a/src/cpl/console/console.py +++ b/src/cpl/console/console.py @@ -165,7 +165,7 @@ class Console: @classmethod def read(cls, output: str = None) -> str: if output is not None and not cls._hold_back: - cls.write(output) + cls.write_line(output) return input()[0] @@ -177,6 +177,8 @@ class Console: if output is not None: cls.write_line(output) + cls._output('\n', end='') + return input() @classmethod