aboutsummaryrefslogtreecommitdiff
path: root/src/libmain
diff options
context:
space:
mode:
authorYestin L. Harrison <yestin@ylh.io>2021-07-01 18:19:01 -0600
committerYestin L. Harrison <yestin@ylh.io>2021-07-01 18:19:01 -0600
commit20cce079f258dc3f62340ecd7b9de1bbd99ef814 (patch)
tree348b44b7537de6235e6a78914155c18f239166f6 /src/libmain
parent139f7af5ec40ca75ad2ef9393c5029f0850105d9 (diff)
Respect TERM=dumb more consistently
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/progress-bar.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/progress-bar.cc b/src/libmain/progress-bar.cc
index 15354549a..b2a6e2a82 100644
--- a/src/libmain/progress-bar.cc
+++ b/src/libmain/progress-bar.cc
@@ -484,7 +484,7 @@ Logger * makeProgressBar(bool printBuildLogs)
{
return new ProgressBar(
printBuildLogs,
- isatty(STDERR_FILENO) && getEnv("TERM").value_or("dumb") != "dumb"
+ shouldANSI()
);
}