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

#31 in Command-line interface

Download history 4670/week @ 2024-08-22 5502/week @ 2024-08-29 5772/week @ 2024-09-05 6208/week @ 2024-09-12 6682/week @ 2024-09-19 11402/week @ 2024-09-26 9623/week @ 2024-10-03 9201/week @ 2024-10-10 10541/week @ 2024-10-17 11672/week @ 2024-10-24 9287/week @ 2024-10-31 9982/week @ 2024-11-07 8124/week @ 2024-11-14 6640/week @ 2024-11-21 7075/week @ 2024-11-28 5776/week @ 2024-12-05

28,978 downloads per month
Used in 87 crates (80 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

~2–10MB
~112K SLoC