]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
terminal-util: fixate underlined yellow color too
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Apr 2020 17:43:44 +0000 (19:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Apr 2020 17:43:44 +0000 (19:43 +0200)
non-underlined yellow uses RGB ANSI sequences while the underlined
version uses the paletted ANSI sequences. Let's unify that and use the
RGB sequence for both cases, so that underlined or not doesn't alter the
color.

src/basic/terminal-util.h

index efc22b1591773a066ff8c56c19ac60533b582beb..c7570c7a617ff2c9d7604dd0f0da33f12b5193c5 100644 (file)
@@ -30,7 +30,7 @@
 /* Underlined */
 #define ANSI_HIGHLIGHT_RED_UNDERLINE     "\x1B[0;1;4;31m"
 #define ANSI_HIGHLIGHT_GREEN_UNDERLINE   "\x1B[0;1;4;32m"
-#define ANSI_HIGHLIGHT_YELLOW_UNDERLINE  "\x1B[0;1;4;33m"
+#define ANSI_HIGHLIGHT_YELLOW_UNDERLINE  "\x1B[0;1;4;38;5;185m"
 #define ANSI_HIGHLIGHT_BLUE_UNDERLINE    "\x1B[0;1;4;34m"
 #define ANSI_HIGHLIGHT_MAGENTA_UNDERLINE "\x1B[0;1;4;35m"
 #define ANSI_HIGHLIGHT_GREY_UNDERLINE    "\x1B[0;1;4;38;5;245m"