mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
Filter ANSI colors when not writing to a terminal
Fixes https://github.com/NixOS/nixpkgs/issues/37114.
This commit is contained in:
parent
7b8914825a
commit
4868721506
4 changed files with 10 additions and 8 deletions
|
@ -53,7 +53,7 @@ public:
|
|||
prefix = std::string("<") + c + ">";
|
||||
}
|
||||
|
||||
writeToStderr(prefix + filterANSIEscapes(fs.s) + "\n");
|
||||
writeToStderr(prefix + filterANSIEscapes(fs.s, !tty) + "\n");
|
||||
}
|
||||
|
||||
void startActivity(ActivityId act, Verbosity lvl, ActivityType type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue