]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
terminal-util: define yellow as "Khaki3"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 17 May 2019 12:51:42 +0000 (14:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 17 May 2019 13:06:59 +0000 (15:06 +0200)
Previously used "highlight yellow" was not visible on urxvt, because it
was too light. This color is shown as bold black by urxvt, but at least
it is readable. On other terminals it is shown as various hues of yellow,
pleasant on the eyes and not too bright. The color shown on linux console
could be called orange rather than yellow, but it is still readable.

(I also tried non-highlight "yellow", but it is not as readable.)

This is a follow-up for bb40c12569d017f75774ff9f4b6fb0ac64f9eee0.

src/basic/terminal-util.h

index ae9cda403b84f3afdefb51d6b93ee220cb116c4d..90adc14d176fcf2ec805e96a7661da59a28e9e40 100644 (file)
@@ -21,7 +21,7 @@
 /* Bold/highlighted */
 #define ANSI_HIGHLIGHT_RED     "\x1B[0;1;31m"
 #define ANSI_HIGHLIGHT_GREEN   "\x1B[0;1;32m"
-#define ANSI_HIGHLIGHT_YELLOW  "\x1B[0;1;33m"
+#define ANSI_HIGHLIGHT_YELLOW  "\x1B[0;1;38;5;185m"
 #define ANSI_HIGHLIGHT_BLUE    "\x1B[0;1;34m"
 #define ANSI_HIGHLIGHT_MAGENTA "\x1B[0;1;35m"
 #define ANSI_HIGHLIGHT_GREY    "\x1B[0;1;38;5;245m"