Skip to main content

color

Function color 

Source
pub fn color(text: &str, code: &str, use_color: bool) -> String
Expand description

Wrap text in ANSI color codes if use_color is true.