Function pseudoterm::isatty[][src]

pub fn isatty<F: AsRawFd>(fd: &F) -> bool

Returns true if the file is a TTY/PTY. This usually means the program is ran interactively and not for example piped to another program.