replace atty crate with std's isTerminal
This commit is contained in:
parent
52bdc37727
commit
31630859cc
5 changed files with 4 additions and 6 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue