pub async fn read_line(
    console: &mut dyn Console,
    prompt: &str,
    previous: &str,
    history: Option<&mut Vec<String>>
) -> Result<String>
Expand description

Reads a line from the console. If the console is interactive, this does fancy line editing and uses the given prompt and pre-fills the input with previous.