pub fn needs_continuation(input: &str) -> boolExpand description
Returns true when input is an incomplete shell construct that needs
more input before it can be executed: an open quote, an unterminated here
document, or an unfinished compound command.
Callers (the application) use this to buffer lines and show a secondary prompt, as real shells do.