pub(crate) fn pieces(steps: &[KeyStep], max: usize) -> Vec<&[KeyStep]>Expand description
The keys in the order they go out, in pieces. A piece ends after an Enter
(the end of a line, so the screen can be read before the next line goes in:
a command may have opened a password prompt) or at max keys, whichever
comes first.