Skip to main content

colour_level

Function colour_level 

Source
pub fn colour_level(
    colour: bool,
    colorterm: Option<&str>,
    colorfgbg: Option<&str>,
) -> ColourLevel
Expand description

The level for a stream. colour is whether the stream takes colour at all (a terminal, and no NO_COLOR). COLORTERM of truecolor or 24bit means 24-bit colour, the same test as anstyle_query::truecolor. The terminal counts as light only when COLORFGBG is set and its last field, the background, is 7 or 15.