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:
+1
-1
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user