Skip to main content

write_set_left_right_margins

Function write_set_left_right_margins 

Source
pub fn write_set_left_right_margins<W: Write>(
    w: &mut W,
    left: u16,
    right: u16,
) -> Result<()>
Expand description

Set left and right margins with DECSLRM, ESC [ <left> ; <right> s.

Arguments are emitted as one-based terminal parameters where 0 means omitted/default. When both are 0, this emits ESC [ s, the same byte sequence as the alternate save-cursor form outside DECSLRM context.