Function supports_color::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