is_color_available

Function is_color_available 

Source
pub fn is_color_available() -> Result<(), ColorError>
Expand description

Check if the terminal supports ANSI colors

ยงReturns

  • Ok(()) if the terminal supports ANSI colors
  • Err(ColorError::NoTerminalSupport) if the terminal does not support ANSI colors