Crate rustyline [] [src]

Readline for Rust

This implementation is based on Antirez's Linenoise

Example

Usage

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

Modules

completion

Completion API

error

Contains error type for handling I/O and Errno errors

history

History API

line_buffer

Line buffer with current cursor position

Structs

Editor

Line editor

Type Definitions

Result

The error type for I/O and Linux Syscalls (Errno)