pub fn get_default_color_scheme_if_enabled() -> Option<&'static AnsiColorScheme>
Expand description

Returns current ANSI color scheme if ANSI colors were enabled, None otherwise.

§Examples

if let Some(color_scheme) = unwind_context::get_default_color_scheme_if_enabled() {
    eprintln!(
        "colorization is enabled with the following color scheme: {:?}",
        color_scheme
    );
} else {
    eprintln!("colorization is disabled");
}