Trait erg_common::tty::IsTty
source · Expand description
Adds the is_tty
method to types that might represent a terminal
use std::io::stdout;
use erg_common::tty::IsTty;
let is_tty: bool = stdout().is_tty();
Adds the is_tty
method to types that might represent a terminal
use std::io::stdout;
use erg_common::tty::IsTty;
let is_tty: bool = stdout().is_tty();