interaction 0.1.0

Interaction is a minimal and a simple readline library for Rust.
Documentation
interaction-0.1.0 has been yanked.

Interaction

Crates.io Crates.io

Interaction is a minimal and a simple readline library for Rust.

  • Single multi line editing mode
    • with the usual key bindings implemented.
  • Multi line editing mode with the usual key bindings implemented.
  • History
  • Completion

Usage

Add this in your Cargo.toml:

[dependencies]
interaction = "0.1.0"

Or, if you installed cargo-edit, you run this command:

$ cargo add interaction

import interaction::Interaction.

use interaction::Interaction;

fn main() {
    let mut inter = Interaction::from_str(";;>");
    loop {
        let input = inter.line().unwrap();
        // write any code.
    }
}