diff options
author | Roy Marples <roy@marples.name> | 2007-06-26 08:39:02 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-06-26 08:39:02 +0000 |
commit | 75f776732bdab9d8f76fc6a47dd5008ed7e0fd50 (patch) | |
tree | cbf07cf75bb23979ca564d0a86b64958c4828081 /src | |
parent | 5876968f2e427b1b906550158c01513ead51625e (diff) |
--nocolor works again, #181011 thanks to Daniel Drake.
Diffstat (limited to 'src')
-rw-r--r-- | src/libeinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) |