Crate anstyle_ls
source · [−]Expand description
anstyle_ls::parse
parses a color configuration string (in LS_COLORS
syntax)
into an anstyle::Style
:
Examples
let style = anstyle_ls::parse("34;03").unwrap();
assert_eq!(style, anstyle::AnsiColor::Blue | anstyle::Effects::ITALIC);
Functions
Parse a string in Git’s color configuration syntax into an
ansi_term::Style
.