summaryrefslogtreecommitdiff
path: root/src/basic/terminal-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-05-10 14:52:05 -0400
committerLennart Poettering <lennart@poettering.net>2019-05-10 15:00:55 -0400
commitbb40c12569d017f75774ff9f4b6fb0ac64f9eee0 (patch)
treec18cb3366c9e3d46a336e2c42b6bc41b0310df8a /src/basic/terminal-util.h
parentf4a8ca329a30896359226eaf7ba3f6812f4f0bff (diff)
downloadsystemd-bb40c12569d017f75774ff9f4b6fb0ac64f9eee0.tar.gz
terminal-util: define grey as 256color ANSI sequence
Apparently all relevant terminals implement these sequences, including the Linux kernel, rxvt, xterm, and of course gnome terminal. Hence it should be OK to use them, and fixate the grey color in a way that maps to the same color in all terminals. Ideally we'd stick to the more symbolic colors that allow terminal emulators to implement color styles, but this apparently doesn#t work, since rxvt maps grey to something unreadable by default. Note that this change has negative effects besides the non-themability of the palette: the midrange grey this uses maps to regular white on the linux console. However, that's probably not too bad: allowing things to be unreadable on some terminals is probably worse than showing no color on some terminals. Fixes: #12482
Diffstat (limited to 'src/basic/terminal-util.h')
-rw-r--r--src/basic/terminal-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/terminal-util.h b/src/basic/terminal-util.h
index f3e785e7ba..6a77e5ebb9 100644
--- a/src/basic/terminal-util.h
+++ b/src/basic/terminal-util.h
@@ -19,7 +19,7 @@
#define ANSI_MAGENTA "\x1B[0;35m"
#define ANSI_CYAN "\x1B[0;36m"
#define ANSI_WHITE "\x1B[0;37m"
-#define ANSI_GREY "\x1B[0;2;37m"
+#define ANSI_GREY "\x1B[0;38;5;245m"
/* Bold/highlighted */
#define ANSI_HIGHLIGHT_BLACK "\x1B[0;1;30m"