A minimal readline with multiline and async support.
Inspired by rustyline,
async-readline, &
termion-async-input. Built using
crossterm.
- Works on all platforms supported by
crossterm. - Full Unicode Support (Including Grapheme Clusters)
- Multiline Editing
- History + Saving/Loading APIs
- Ctrl-C, Ctrl-D are returned as
Ok(Interrupt)andOk(Eof)ReadlineEvents. - Ctrl-U to clear line before cursor
- Ctrl-left & right to move to next or previous whitespace
- Home/Ctrl-A and End/Ctrl-E to jump to the start and end of the input (Ctrl-A & Ctrl-E can be toggled off by disabling the "emacs" feature)
- Ctrl-L clear screen
- Ctrl-W delete until previous space
- Extensible design based on
crossterm'sevent-streamfeature
Feel free to PR to add more features!
cargo run --example readline
This software is licensed under The Unlicense license.
