21 unstable releases (10 breaking)

0.11.1 Nov 27, 2024
0.10.1 Aug 26, 2024
0.9.0 Jun 29, 2024
0.8.0 Aug 7, 2023
0.1.2 Nov 4, 2021

#29 in Command-line interface

Download history 5871/week @ 2024-09-15 9769/week @ 2024-09-22 10474/week @ 2024-09-29 9236/week @ 2024-10-06 9844/week @ 2024-10-13 11328/week @ 2024-10-20 10449/week @ 2024-10-27 9811/week @ 2024-11-03 8746/week @ 2024-11-10 7807/week @ 2024-11-17 6433/week @ 2024-11-24 7295/week @ 2024-12-01 7297/week @ 2024-12-08 6631/week @ 2024-12-15 4495/week @ 2024-12-22 3859/week @ 2024-12-29

22,851 downloads per month
Used in 92 crates (84 directly)

MIT license

29KB
675 lines

tui-input

Crate Status Docs Status

tui-input.gif

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

# crossterm
tui-input = "*"

# termion
tui-input = { version = "*", features = ["termion"], default-features = false }

Features

  • crossterm (default)
  • termion
  • serde

Demo

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)

Dependencies

~1.5–10MB
~109K SLoC