Function copypasta_ext::display::is_tty
source · pub fn is_tty() -> bool
Expand description
Check whether we’re in a TTY environment.
This is a basic check and only returns true if XDG_SESSION_TYPE
is set to tty
explicitly.
pub fn is_tty() -> bool
Check whether we’re in a TTY environment.
This is a basic check and only returns true if XDG_SESSION_TYPE
is set to tty
explicitly.