Skip to main content

color_code

Function color_code 

Source
pub fn color_code(c: &str, bg: bool, depth: ColorDepth) -> Option<String>
Expand description

SGR parameter(s) for one color, or None (terminal default / unsupported at this depth).