[][src]Function ansistr::color_str

pub fn color_str<S: Into<String>>(txt: S, color: &TextColor) -> String

Wraps text with ANSI color codes.