don't let externals break ansi escapes (#3438)

This commit is contained in:
Darren Schroeder 2021-05-17 18:01:34 -05:00 committed by GitHub
parent 86e6fcd309
commit 1b4f7b34c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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())
} }
} }