Expose supports_ansi (#489)
This commit is contained in:
parent
c6ffb3b8f9
commit
729f3c6931
@ -50,6 +50,7 @@ lazy_static! {
|
||||
};
|
||||
}
|
||||
|
||||
/// Checks if the current terminal supports ansi escape sequences
|
||||
pub fn supports_ansi() -> bool {
|
||||
*SUPPORTS_ANSI_ESCAPE_CODES
|
||||
}
|
||||
|
@ -250,7 +250,8 @@ pub mod tty;
|
||||
|
||||
mod ansi;
|
||||
#[cfg(windows)]
|
||||
pub(crate) mod ansi_support;
|
||||
/// A module that exposes one function to check if the current terminal supports ansi sequences.
|
||||
pub mod ansi_support;
|
||||
mod command;
|
||||
mod error;
|
||||
pub(crate) mod macros;
|
||||
|
Loading…
Reference in New Issue
Block a user