mirror of
https://github.com/nushell/nushell.git
synced 2025-04-09 21:28:55 +02:00
don't let externals break ansi escapes (#3438)
This commit is contained in:
parent
86e6fcd309
commit
1b4f7b34c8
@ -114,6 +114,12 @@ impl WholeStreamCommand for RunExternalCommand {
|
|||||||
external_redirection,
|
external_redirection,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// When externals return, don't let them mess up the ansi escapes
|
||||||
|
#[cfg(windows)]
|
||||||
|
{
|
||||||
|
let _ = nu_ansi_term::enable_ansi_support();
|
||||||
|
}
|
||||||
|
|
||||||
Ok(result?.to_action_stream())
|
Ok(result?.to_action_stream())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user