[][src]Function coreutils_core::os::tty::is_tty

pub fn is_tty(file_descriptor: &impl AsRawFd) -> bool

Check if the given file_descriptor is a TTY.

Example

let istty = is_tty(&std::io::stdin());