Module control

Source
Expand description

A couple of functions to enable and disable coloring.

Structs§

SHOULD_COLORIZE
The persistent ShouldColorize.
ShouldColorize
A flag for whether coloring should occur.

Functions§

set_override
Use this to force colored to ignore the environment and always/never colorize See example/control.rs
unset_override
Remove the manual override and let the environment decide if it’s ok to colorize See example/control.rs