Skip to main content

read_back

Function read_back 

Source
pub(crate) fn read_back(rows: &[String], typed: &str) -> Option<String>
Expand description

The line the terminal shows at its prompt now. With typed, the line must end with it, over as many rows as it wrapped; None means the terminal does not show what was typed, so what Enter would run can’t be confirmed. Without typed (only keys were pressed, say ArrowUp), it is the last row.