macro_rules! is_terminal {
($fd:expr) => { ... };
}Expand description
Return true if a given file descriptor is a terminal/tty, otherwise false.
Allows overriding the return value for testing purposes.
macro_rules! is_terminal {
($fd:expr) => { ... };
}Return true if a given file descriptor is a terminal/tty, otherwise false.
Allows overriding the return value for testing purposes.