1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-08 22:32:26 +01:00

Use nu-ansi-term instead of ansi_term

The `nu-ansi-term` crate is a fork of `ansi_term` which is maintained by
the Nushell project.
This commit is contained in:
Constantin Nickel
2023-03-23 10:47:38 +01:00
parent d20405b975
commit da3aa4e2fd
9 changed files with 23 additions and 23 deletions

View File

@@ -43,7 +43,7 @@ impl From<String> for Error {
pub type Result<T> = std::result::Result<T, Error>;
pub fn default_error_handler(error: &Error, output: &mut dyn Write) {
use ansi_term::Colour::Red;
use nu_ansi_term::Color::Red;
match error {
Error::Io(ref io_error) if io_error.kind() == ::std::io::ErrorKind::BrokenPipe => {