--nocolor works again, #181011 thanks to Daniel Drake.

This commit is contained in:
Roy Marples 2007-06-26 08:39:02 +00:00
parent 5876968f2e
commit 75f776732b
2 changed files with 7 additions and 0 deletions

View File

@ -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 <uberlord@gentoo.org>:
--nocolor works again, #181011 thanks to Daniel Drake.
21 Jun 2007; Mike Frysinger <vapier@gentoo.org>:
Allow urandom location to be customized #134489.

View File

@ -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)