From: Daan De Meyer Date: Sun, 13 Aug 2023 20:22:23 +0000 (+0200) Subject: Fix gray ansi color definition X-Git-Tag: v16~63^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8253f583a5fb1f458bd57813491e5e7aee4773b;p=thirdparty%2Fmkosi.git Fix gray ansi color definition We weren't actually getting gray output with the previous definition. Let's steal the one from systemd to make it work. --- diff --git a/mkosi/log.py b/mkosi/log.py index 192d02c23..eb72c758f 100644 --- a/mkosi/log.py +++ b/mkosi/log.py @@ -15,7 +15,7 @@ LEVEL = 0 class Style: bold = "\033[0;1;39m" if sys.stderr.isatty() else "" - gray = "\x1b[38;20m" if sys.stderr.isatty() else "" + gray = "\033[0;38;5;245m" if sys.stderr.isatty() else "" red = "\033[31;1m" if sys.stderr.isatty() else "" yellow = "\033[33;1m" if sys.stderr.isatty() else "" reset = "\033[0m" if sys.stderr.isatty() else ""