pub fn color_from_style_spec(spec: &str) -> Option<Color>Expand description
Parses a REPL style string and extracts a terminal color.
The parser accepts simple named colors as well as #rrggbb, #rgb,
ansiNN, and rgb(r,g,b) forms. Non-color attributes such as bold are
ignored when selecting the effective color token.