is_terminal

Macro is_terminal 

Source
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.