liner
A Rust library offering readline-like functionality.
Featues
- Autosuggestions
- Emacs and Vi keybindings
- Multi-line editing
- History
- (Incomplete) basic and filename completions
- Reverse search
- Remappable keybindings
Basic Usage
In Cargo.toml
:
[]
= "0.3.*"
...
In src/main.rs
:
extern crate liner;
use Context;
See src/main.rs for a more sophisticated example.
License
MIT licensed. See the LICENSE
file.