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 10683/week @ 2024-09-23 10115/week @ 2024-09-30 9126/week @ 2024-10-07 9947/week @ 2024-10-14 11378/week @ 2024-10-21 10456/week @ 2024-10-28 9969/week @ 2024-11-04 8570/week @ 2024-11-11 7375/week @ 2024-11-18 6577/week @ 2024-11-25 7363/week @ 2024-12-02 7441/week @ 2024-12-09 6044/week @ 2024-12-16 4632/week @ 2024-12-23 4433/week @ 2024-12-30 6037/week @ 2025-01-06

22,116 downloads per month
Used in 93 crates (85 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
~117K SLoC