TUI input library supporting multiple backends, tui-rs and ratatui
Rust
205
84 commits
updated Sep 26, 2026
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
# ratatui::crossterm
tui-input = "*"
# Direct crossterm
tui-input = { version = "*", features = ["crossterm"], default-features = false }
# termion
tui-input = { version = "*", features = ["termion"], default-features = false }
See examples.
# Run the ratatui example
cargo run --example ratatui_crossterm_input
# Run the example with crossterm as backend.
cargo run --example crossterm_input --features crossterm --no-default-features
# Run the example with termion as backend.
cargo run --example termion_input --features termion --no-default-features
1,484 followers · starred Oct 2023
16 followers · starred Oct 2025
136 followers · starred Aug 2023
332 followers · starred Jan 2024
TUI input library supporting multiple backends, tui-rs and ratatui
Rust
205
84 commits
updated Sep 26, 2026
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
# ratatui::crossterm
tui-input = "*"
# Direct crossterm
tui-input = { version = "*", features = ["crossterm"], default-features = false }
# termion
tui-input = { version = "*", features = ["termion"], default-features = false }
See examples.
# Run the ratatui example
cargo run --example ratatui_crossterm_input
# Run the example with crossterm as backend.
cargo run --example crossterm_input --features crossterm --no-default-features
# Run the example with termion as backend.
cargo run --example termion_input --features termion --no-default-features
1,484 followers · starred Oct 2023
16 followers · starred Oct 2025
136 followers · starred Aug 2023
332 followers · starred Jan 2024