term_color_support/lib.rs
1//! `term_color_support` is a library for detecting and managing color support in terminal environments.
2//!
3//! This crate provides modules for managing color support detection and information (`colors`),
4//! fetching environment details (`environment`), and extracting color support level from
5//! environment variables and command-line flags (`options`).
6//!
7//! The `ColorSupport` struct is re-exported for convenient access to color support detection
8//! functionality.
9//!
10//! # Example
11//!
12//! ```rust
13//! use term_color_support::ColorSupport;
14//!
15//! fn main() {
16//! // Detect and print color support for stdout
17//! println!("Color support for stdout: {:?}", ColorSupport::stdout());
18//!
19//! // Detect and print color support for stderr
20//! println!("Color support for stderr: {:?}", ColorSupport::stderr());
21//! }
22//! ```
23
24mod colors;
25mod environment;
26mod options;
27
28pub use colors::ColorSupport;