Skip to main content

window

Function window 

Source
pub fn window(
    lines: Vec<String>,
    focus_line: usize,
    cursor: Option<(usize, usize)>,
    footer: &str,
    style: Style,
    _width: usize,
    height: usize,
) -> Frame
Expand description

Trims the lines to fit the height, keeping the focused line in view, and adds the footer.