Skip to main content

draw

Function draw 

Source
pub fn draw(
    protocol: Protocol,
    bytes: &[u8],
    name: &str,
    columns: usize,
) -> String
Expand description

The escape sequence that draws these bytes, ready to write to stdout.

columns bounds the width in cells. Both protocols scale to fit and keep the aspect ratio, which matters more than it sounds: a screenshot is commonly two thousand pixels wide, and drawn at its natural size it takes the whole window and several screens of scrollback with it.