supports_color

Function on_cached

Source
pub fn on_cached(stream: Stream) -> Option<ColorLevel>
Expand description

Returns a ColorLevel if a Stream supports terminal colors, caching the result to be returned from then on.

If you expect your environment to change between calls, use on