]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix gray ansi color definition
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 13 Aug 2023 20:22:23 +0000 (22:22 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 14 Aug 2023 09:21:11 +0000 (11:21 +0200)
We weren't actually getting gray output with the previous definition.
Let's steal the one from systemd to make it work.

mkosi/log.py

index 192d02c2358e8a31a54a7f0404c7d56b453321d8..eb72c758f89dcd37e909aee991b93d2f0488fc3b 100644 (file)
@@ -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 ""