pub fn parse_style_string(style_string: &str) -> Option<Style>
Expand description

Parse a style string which represents an ansi style. Valid tokens in the style string include the following:

  • ‘fg:’ (specifies that the color read should be a foreground color)
  • ‘bg:’ (specifies that the color read should be a background color)
  • ‘underline’
  • ‘bold’
  • ‘italic’
  • ‘inverted’
  • ’ (see the parse_color_string doc for valid color strings)