Struct TermFeatures
pub struct TermFeatures<'a>(/* private field */);
Gives access to the terminal features.
Implementations
impl TermFeatures<'_>
fn is_attended(&self) -> boolCheck if this is a real user attended terminal (
isatty)fn colors_supported(&self) -> boolCheck if colors are supported by this terminal.
This does not check if colors are enabled. Currently all terminals are considered to support colors
fn true_colors_supported(&self) -> boolCheck if true colors are supported by this terminal.
fn is_msys_tty(&self) -> boolCheck if this terminal is an msys terminal.
This is sometimes useful to disable features that are known to not work on msys terminals or require special handling.
fn wants_emoji(&self) -> boolCheck if this terminal wants emojis.
fn family(&self) -> TermFamilyReturn the family of the terminal.
Trait Implementations
impl<'a> Clone for TermFeatures<'a>
fn clone(&self) -> Self
impl<'a> Debug for TermFeatures<'a>
fn fmt(&self, f: &mut Formatter<'_>) -> Result