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

#27 in Command-line interface

Download history 11258/week @ 2024-10-25 9565/week @ 2024-11-01 9442/week @ 2024-11-08 8215/week @ 2024-11-15 6547/week @ 2024-11-22 7189/week @ 2024-11-29 7114/week @ 2024-12-06 7019/week @ 2024-12-13 5076/week @ 2024-12-20 3779/week @ 2024-12-27 6392/week @ 2025-01-03 6458/week @ 2025-01-10 7280/week @ 2025-01-17 7062/week @ 2025-01-24 7263/week @ 2025-01-31 7331/week @ 2025-02-07

30,342 downloads per month
Used in 101 crates (93 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–10MB
~116K SLoC