[−][src]Trait crossterm::tty::IsTty
Adds the is_tty
method to types that might represent a terminal
use std::io::stdout; use crossterm::tty::IsTty; let is_tty: bool = stdout().is_tty();
Required methods
Loading content...Implementors
impl<S: AsRawFd> IsTty for S
[src]
On unix, the isatty()
function returns true if a file
descriptor is a terminal.