Crate rustyline[stability] [-] [+] [src]

Readline for Rust

This implementation is based on Antirez's Linenoise

Example

Usage

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

Modules

consts
error

Contains error type for handling I/O and Errno errors

Functions

readline

This method will read a line from STDIN and will display a prompt

Type Definitions

Result

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