Skip to content

Commit 0eed6e7

Browse files
committed
Update readme
1 parent a9a5d03 commit 0eed6e7

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ For people using `tui-rs` use version `v0.6.*` for people migrating to `ratatui`
1616
Cargo.toml
1717

1818
```toml
19-
# crossterm
19+
# ratatui::crossterm
2020
tui-input = "*"
2121

22+
# Direct crossterm
23+
tui-input = { version = "*", features = ["crossterm"], default-features = false }
24+
2225
# termion
2326
tui-input = { version = "*", features = ["termion"], default-features = false }
2427
```
@@ -36,12 +39,12 @@ tui-input = { version = "*", features = ["termion"], default-features = false }
3639
See [examples](https://github.com/sayanarijit/tui-input/tree/main/examples).
3740

3841
```bash
42+
# Run the ratatui example
43+
cargo run --example ratatui_crossterm_input
44+
3945
# Run the example with crossterm as backend.
40-
cargo run --example crossterm_input
46+
cargo run --example crossterm_input --features crossterm --no-default-features
4147

4248
# Run the example with termion as backend.
43-
cargo run --example termion_input --features termion
44-
45-
# Run the tui-rs example
46-
(cd ./examples/ratatui-input/ && cargo run)
49+
cargo run --example termion_input --features termion --no-default-features
4750
```

0 commit comments

Comments
 (0)