mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Filter ANSI escape sequences in -L output
Otherwise, builds like NixOS VM tests may leave the terminal in a weird state and do resets.
This commit is contained in:
parent
55bba8e4f5
commit
4331eeb13d
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ public:
|
|||
void log(State & state, Verbosity lvl, const std::string & s)
|
||||
{
|
||||
if (state.active) {
|
||||
writeToStderr("\r\e[K" + s + ANSI_NORMAL "\n");
|
||||
writeToStderr("\r\e[K" + filterANSIEscapes(s, !isTTY) + ANSI_NORMAL "\n");
|
||||
draw(state);
|
||||
} else {
|
||||
auto s2 = s + ANSI_NORMAL "\n";
|
||||
|
|
Loading…
Reference in a new issue