1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-23 17:03:18 +00: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
+1 -1
View File
@@ -38,7 +38,7 @@ pub struct App {
impl App {
pub fn new() -> Result<Self> {
#[cfg(windows)]
let _ = ansi_term::enable_ansi_support();
let _ = nu_ansi_term::enable_ansi_support();
let interactive_output = atty::is(Stream::Stdout);
+2 -2
View File
@@ -14,8 +14,8 @@ use std::io::{BufReader, Write};
use std::path::Path;
use std::process;
use ansi_term::Colour::Green;
use ansi_term::Style;
use nu_ansi_term::Color::Green;
use nu_ansi_term::Style;
use crate::{
app::App,