Interaction

Crates.io Crates.io

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

Usage

Add this in your Cargo.toml:

toml [dependencies] interaction = "0.1.0"

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

sh $ cargo add interaction

import interaction::Interaction.

```rust use interaction::Interaction;

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