Skip to main content

set_scroll_region

Function set_scroll_region 

Source
pub fn set_scroll_region<W: Write>(
    w: &mut W,
    top: u16,
    bottom: u16,
) -> Result<()>
Expand description

DECSTBM (Set Top and Bottom Margins): CSI top ; bottom r

Sets the scroll region. Top and bottom are 0-indexed, converted to 1-indexed.