tui-input
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.
Install
Cargo.toml
# ratatui::crossterm
= "*"
# Direct crossterm
= { = "*", = ["crossterm"], = false }
# termion
= { = "*", = ["termion"], = false }
Features
- ratatui-crossterm (default)
- ratatui-termion
- crossterm
- termion
- serde
Demo
See examples.
# Run the ratatui example
# Run the example with crossterm as backend.
# Run the example with termion as backend.