]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
color: Do not use dark blue in dark-background palette
authorBen Hutchings <benh@debian.org>
Wed, 26 Mar 2025 14:08:56 +0000 (15:08 +0100)
committerDavid Ahern <dsahern@kernel.org>
Tue, 1 Apr 2025 03:36:58 +0000 (03:36 +0000)
In GNOME Terminal's default dark colour schemes, the default (dark)
blue on a black background is barely readable.  Light blue is
significantly more readable to me, and is also easily readable on a
white background.

In Konsole, rxvt, and xterm, I can see little if any difference
between dark and light blue in the default dark colour schemes.

So replace dark blue with light blue in the dark-background palette.

Signed-off-by: Ben Hutchings <benh@debian.org>
lib/color.c

index 88ba9b0331ccc7cbfef6af4c241543cec7da7b9f..aa112352dcce427fa5bb31339c1bae3310aa1bb6 100644 (file)
@@ -24,7 +24,7 @@ enum color {
        C_BOLD_RED,
        C_BOLD_GREEN,
        C_BOLD_YELLOW,
-       C_BOLD_BLUE,
+       C_BOLD_LIGHT_BLUE,
        C_BOLD_MAGENTA,
        C_BOLD_CYAN,
        C_BOLD_WHITE,
@@ -42,7 +42,7 @@ static const char * const color_codes[] = {
        "\e[1;31m",
        "\e[1;32m",
        "\e[1;33m",
-       "\e[1;34m",
+       "\e[1;94m",
        "\e[1;35m",
        "\e[1;36m",
        "\e[1;37m",
@@ -66,7 +66,7 @@ static enum color attr_colors_dark[] = {
        C_BOLD_CYAN,
        C_BOLD_YELLOW,
        C_BOLD_MAGENTA,
-       C_BOLD_BLUE,
+       C_BOLD_LIGHT_BLUE,
        C_BOLD_GREEN,
        C_BOLD_RED,
        C_CLEAR