mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
don't let externals break ansi escapes (#3438)
This commit is contained in:
parent
86e6fcd309
commit
1b4f7b34c8
1 changed files with 6 additions and 0 deletions
|
@ -114,6 +114,12 @@ impl WholeStreamCommand for RunExternalCommand {
|
|||
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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue