From: Daan De Meyer Date: Thu, 16 Oct 2025 11:25:44 +0000 (+0200) Subject: Don't print newline after ansi sequences X-Git-Tag: v26~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbaf92b50e5778c2c4c1029fdd9fbe3f15333b9a;p=thirdparty%2Fmkosi.git Don't print newline after ansi sequences --- diff --git a/mkosi/log.py b/mkosi/log.py index 8c4471e19..3aea24050 100644 --- a/mkosi/log.py +++ b/mkosi/log.py @@ -33,11 +33,11 @@ def log_step(text: str) -> None: # easily which step generated the exception. The exception # or error will only be printed after we finish cleanup. if not terminal_is_dumb(): - print(f"\033]0;mkosi: {text}", file=sys.stderr) + print(f"\033]0;mkosi: {text}", file=sys.stderr, end="") logging.info(f"{prefix}({text})") else: if not terminal_is_dumb(): - print(f"\033]0;mkosi: {text}", file=sys.stderr) + print(f"\033]0;mkosi: {text}", file=sys.stderr, end="") logging.info(f"{prefix}{Style.bold}{text}{Style.reset}")