styled

Function styled 

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

Wrap text in the given SGR parameters, or return it unchanged when the output is not colorized.