Skip to main content

scroll_region

Function scroll_region 

Source
fn scroll_region(
    mem: &mut impl BiosMemory,
    up: bool,
    lines: u8,
    attr: u8,
    top: u8,
    left: u8,
    bottom: u8,
    right: u8,
) -> bool
Expand description

Scrolls a rectangular text window up or down.

lines == 0 blanks the whole window. Vacated cells receive attr. The caller has already clamped the window to the screen and checked that top <= bottom and left <= right.