diff --git a/src/ansi_support.rs b/src/ansi_support.rs index 026fba5..b473fb8 100644 --- a/src/ansi_support.rs +++ b/src/ansi_support.rs @@ -50,6 +50,7 @@ lazy_static! { }; } +/// Checks if the current terminal supports ansi escape sequences pub fn supports_ansi() -> bool { *SUPPORTS_ANSI_ESCAPE_CODES } diff --git a/src/lib.rs b/src/lib.rs index 4be6f01..37ab6fd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;