Skip to main content

background

Function background 

Source
pub fn background(
    multiplexer: Multiplexer,
    passthrough: bool,
) -> Option<(bool, (u8, u8, u8))>
Expand description

Asks the terminal for its background again, as when Cellix comes back into focus: it may have turned from light to dark since Cellix started. Must run in raw mode, between reads of input. Gives whether it’s light, and its colour, when the terminal said.