mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
Improve filtering of ANSI escape sequences in build logs
All ANSI sequences except color setting are now filtered out. In particular, terminal resets (such as from NixOS VM tests) are filtered out. Also, fix the completely broken tab character handling.
This commit is contained in:
parent
cfdfad5c34
commit
84989d3af2
6 changed files with 53 additions and 71 deletions
|
@ -44,7 +44,7 @@ public:
|
|||
prefix = std::string("<") + c + ">";
|
||||
}
|
||||
|
||||
writeToStderr(prefix + (tty ? fs.s : filterANSIEscapes(fs.s)) + "\n");
|
||||
writeToStderr(prefix + filterANSIEscapes(fs.s) + "\n");
|
||||
}
|
||||
|
||||
void startActivity(ActivityId act, Verbosity lvl, ActivityType type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue