Skip to main content

resize

Function resize 

Source
pub(crate) fn resize<T: EventListener>(
    term: &mut Term<T>,
    cols: usize,
    rows: usize,
    appended: &mut u64,
)
Expand description

Resize the grid, moving the lifetime read cursor with the reflow.

A reflow is not output. The grid’s line count changes without a byte arriving, so a cursor read against appended - total would slide to a different line; moving the lifetime count by the same amount keeps the buffer’s first line where the cursor was measured against it.