1
Fork 0

replace atty crate with std's isTerminal

This commit is contained in:
klensy 2023-07-26 18:09:50 +03:00
parent 52bdc37727
commit 31630859cc
5 changed files with 4 additions and 6 deletions

View file

@ -834,9 +834,10 @@ impl OutFileName {
}
pub fn is_tty(&self) -> bool {
use std::io::IsTerminal;
match *self {
OutFileName::Real(_) => false,
OutFileName::Stdout => atty::is(atty::Stream::Stdout),
OutFileName::Stdout => std::io::stdout().is_terminal(),
}
}