From 75f776732bdab9d8f76fc6a47dd5008ed7e0fd50 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 26 Jun 2007 08:39:02 +0000 Subject: [PATCH] --nocolor works again, #181011 thanks to Daniel Drake. --- ChangeLog | 4 ++++ src/libeinfo.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index af84c569..ee19d377 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for Gentoo System Intialization ("rc") scripts # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2 + 26 Jun 2007; Roy Marples : + + --nocolor works again, #181011 thanks to Daniel Drake. + 21 Jun 2007; Mike Frysinger : Allow urandom location to be customized #134489. diff --git a/src/libeinfo.c b/src/libeinfo.c index 470bf92f..b5d0fa19 100644 --- a/src/libeinfo.c +++ b/src/libeinfo.c @@ -154,6 +154,9 @@ static bool colour_terminal (void) if (in_colour == 1) return (true); + if (is_env ("RC_NOCOLOR", "yes")) + return (false); + if (! term) { term = getenv ("TERM"); if (! term)