coreutils_core::os::tty
pub fn is_tty(file_descriptor: &impl AsRawFd) -> bool
Check if the given file_descriptor is a TTY.
file_descriptor
let istty = is_tty(&std::io::stdin());