Skip to main content

write_set_background_color

Function write_set_background_color 

Source
pub fn write_set_background_color<W: Write>(
    w: &mut W,
    color: &str,
) -> Result<()>
Expand description

Set the default text background color with ESC ] 11 ; <color> BEL.

The color payload is emitted verbatim and typically uses an XParseColor-compatible color string. This changes the terminal default background rather than emitting SGR.