Skip to main content

selection

Function selection 

Source
pub fn selection(
    fb: &mut Framebuffer,
    x0: i32,
    y0: i32,
    x1: i32,
    y1: i32,
    fg: u8,
    bg: u8,
)
Expand description

Invert-style selection: repaint a rectangle’s pixels with swapped foreground/background, used for text selections and highlights.