Skip to main content

ansi_intent

Function ansi_intent 

Source
pub fn ansi_intent(index: usize, variant: &str) -> Option<&'static str>
Expand description

The authored intent painting ANSI slot index under a theme of variant, as a dotted key into ThemeColors::colors.

None for an index outside 0-15. Every slot in range resolves, so a caller that has the intent can fill all sixteen.

This is what makes a bare console, a terminal emulator and a generated config agree on what red means. They disagreed for as long as each kept its own table.