X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Fterminal-util.c;h=d29dcd5bec79df79c2d677e2386bb18ed3300105;hp=efd35cd727cc944c166f428c113669ff97d975c6;hb=d77d27f4ca2945f88343fbe72ed0bf1236ad2aa6;hpb=d039bb6e747bf119406f28a63fac10b7970260b7;ds=sidebyside diff --git a/src/basic/terminal-util.c b/src/basic/terminal-util.c index efd35cd72..d29dcd5be 100644 --- a/src/basic/terminal-util.c +++ b/src/basic/terminal-util.c @@ -1219,6 +1219,7 @@ bool colors_enabled(void) { static int enabled = -1; if (_unlikely_(enabled < 0)) { +#if 0 /// elogind does not allow such forcing, and we are never init! int val; val = getenv_bool("SYSTEMD_COLORS"); @@ -1228,6 +1229,7 @@ bool colors_enabled(void) { /* PID1 outputs to the console without holding it open all the time */ enabled = !getenv_terminal_is_dumb(); else +#endif // 0 enabled = !terminal_is_dumb(); }