[−][src]Crate tcalc_rustyline
Readline for Rust
This implementation is based on Antirez's Linenoise
Example
Usage
let mut rl = tcalc_rustyline::Editor::<()>::new(); let readline = rl.readline(">> "); match readline { Ok(line) => println!("Line: {:?}",line), Err(_) => println!("No input"), }
Re-exports
pub use config::CompletionType; |
pub use config::Config; |
pub use config::HistoryDuplicates; |
Modules
completion | Completion API |
config | Customize line editor |
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 |
Iter |
Type Definitions
Result | The error type for I/O and Linux Syscalls (Errno) |