Crates.io | tui-input |
lib.rs | tui-input |
version | 0.11.1 |
source | src |
created_at | 2021-11-04 07:49:50.777129 |
updated_at | 2024-11-27 09:16:08.666656 |
description | TUI input library supporting multiple backends |
homepage | |
repository | https://github.com/sayanarijit/tui-input |
max_upload_size | |
id | 476496 |
size | 50,945 |
A TUI input library supporting multiple backends.
This crate can be used with tui-rs and ratatui.
For people using tui-rs
use version v0.6.*
for people migrating to ratatui
use latest version.
Cargo.toml
# crossterm
tui-input = "*"
# termion
tui-input = { version = "*", features = ["termion"], default-features = false }
See examples.
# Run the example with crossterm as backend.
cargo run --example crossterm_input
# Run the example with termion as backend.
cargo run --example termion_input --features termion
# Run the tui-rs example
(cd ./examples/ratatui-input/ && cargo run)