Skip to main content

parse_colorfgbg

Function parse_colorfgbg 

Source
pub fn parse_colorfgbg(value: &str) -> Option<Theme>
Expand description

Parses COLORFGBG ("fg;bg", or "fg;dark_bg;bg" on some terminals — only the last field is ever the background) into a Theme using the conventional xterm 16-color palette: indices 0-6 and 8 are dark, 7 and 9-15 are light.