From 486872150638d56483c2bc429ba9e137d9974ee8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 15 Mar 2018 16:08:07 +0100 Subject: Filter ANSI colors when not writing to a terminal Fixes https://github.com/NixOS/nixpkgs/issues/37114. --- src/nix/progress-bar.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nix') diff --git a/src/nix/progress-bar.cc b/src/nix/progress-bar.cc index e6553c06f..40b905ba3 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::max(); - writeToStderr("\r" + filterANSIEscapes(line, width) + "\e[K"); + writeToStderr("\r" + filterANSIEscapes(line, false, width) + "\e[K"); } std::string getStatus(State & state) -- cgit v1.2.3