# Interaction

[](https://crates.io/crates/interaction)
Interaction is a minimal and a simple readline library for Rust.
* [x] 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`:
```toml
[dependencies]
interaction = "0.1.0"
```
Or, if you installed [cargo-edit](https://github.com/killercup/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.
}
}
```