mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-08 00:44:30 +01:00
Enable ANSI support on Windows 10
This commit is contained in:
parent
3ee0e56315
commit
ca865f9d26
@ -15,6 +15,9 @@ impl App {
|
|||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
let interactive_output = atty::is(Stream::Stdout);
|
let interactive_output = atty::is(Stream::Stdout);
|
||||||
|
|
||||||
|
#[cfg(windows)]
|
||||||
|
let interactive_output = interactive_output && ansi_term::enable_ansi_support().is_ok();
|
||||||
|
|
||||||
App {
|
App {
|
||||||
matches: Self::matches(interactive_output),
|
matches: Self::matches(interactive_output),
|
||||||
interactive_output,
|
interactive_output,
|
||||||
|
Loading…
Reference in New Issue
Block a user