diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-03-15T15·08+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-03-15T15·08+0100 |
commit | 486872150638d56483c2bc429ba9e137d9974ee8 (patch) | |
tree | 469f6346618c2fbe1eb2e4282ef7e6cc90c01ff5 /src/nix | |
parent | 7b8914825a6b02173976eae0ca59053085d4b20a (diff) |
Filter ANSI colors when not writing to a terminal
Fixes https://github.com/NixOS/nixpkgs/issues/37114.
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/progress-bar.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/progress-bar.cc b/src/nix/progress-bar.cc index e6553c06f4ae..40b905ba3243 100644 --- a/src/nix/progress-bar.cc +++ b/src/nix/progress-bar.cc @@ -308,7 +308,7 @@ public: auto width = getWindowSize().second; if (width <= 0) std::numeric_limits<decltype(width)>::max(); - writeToStderr("\r" + filterANSIEscapes(line, width) + "\e[K"); + writeToStderr("\r" + filterANSIEscapes(line, false, width) + "\e[K"); } std::string getStatus(State & state) |