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

#32 in Command-line interface

Download history 7814/week @ 2024-12-11 6031/week @ 2024-12-18 3259/week @ 2024-12-25 5765/week @ 2025-01-01 6130/week @ 2025-01-08 6840/week @ 2025-01-15 7287/week @ 2025-01-22 7445/week @ 2025-01-29 7545/week @ 2025-02-05 6762/week @ 2025-02-12 7537/week @ 2025-02-19 7211/week @ 2025-02-26 5955/week @ 2025-03-05 6825/week @ 2025-03-12 7327/week @ 2025-03-19 5507/week @ 2025-03-26

26,687 downloads per month
Used in 104 crates (96 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–11MB
~126K SLoC