Skip to content
A readline-like library in Rust.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
src fix history truncation Nov 20, 2017
.travis.yml add Jul 10, 2016
Cargo.toml patch version bump 0.4.2 -> 0.4.3 Nov 20, 2017
LICENSE update LICENSE Jun 11, 2017


A Rust library offering readline-like functionality. Build Status Docs


  • Autosuggestions
  • Emacs and Vi keybindings
  • Multi-line editing
  • History
  • (Incomplete) basic and filename completions
  • Reverse search
  • Remappable keybindings

Basic Usage

In Cargo.toml:

liner = "0.4.3"

In src/

extern crate liner;

use liner::Context;

fn main() {
    let mut con = Context::new();

    loop {
        let res = con.read_line("[prompt]$ ", &mut |_| {}).unwrap();

        if res.is_empty() {


See src/ for a more sophisticated example.


MIT licensed. See the LICENSE file.

You can’t perform that action at this time.