Crate atty [−] [src]
atty is a simple utility that answers one question
is this a tty?
usage is just as simple
if atty::is() { println!("i'm a tty") }
if atty::isnt() { println!("i'm not a tty") }
Functions
is |
returns true if this is a tty |
isnt |
returns true if this is not a tty |