Crate rustyline

Readline for Rust

This implementation is based on Antirez's Linenoise

Example

Usage

let mut rl = rustyline::DefaultEditor::new()?;
let readline = rl.readline(">> ");
match readline {
    Ok(line) => println!("Line: {:?}", line),
    Err(_) => println!("No input"),
}
# Ok::<(), rustyline::error::ReadlineError>(())

Modules

Structs

Traits

Type Aliases