summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge
index d0d1a3fdc..0739986f5 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -3435,6 +3435,9 @@ def emerge_main():
if settings.get("NOCOLOR","") in ("yes","true"):
nocolor()
+ elif (not sys.stdout.isatty()) and \
+ settings.get("NOCOLOR","") not in ("no","false"):
+ nocolor()
tmpcmdline = sys.argv[1:]
if "--ignore-default-opts" not in tmpcmdline: