16 unstable releases (7 breaking)

0.8.0 Aug 7, 2023
0.7.1 May 23, 2023
0.7.0 Mar 22, 2023
0.6.1 Nov 13, 2022
0.1.2 Nov 4, 2021

#47 in Command-line interface

Download history 1548/week @ 2024-01-23 1164/week @ 2024-01-30 1424/week @ 2024-02-06 1226/week @ 2024-02-13 1257/week @ 2024-02-20 1639/week @ 2024-02-27 1824/week @ 2024-03-05 6535/week @ 2024-03-12 4210/week @ 2024-03-19 4472/week @ 2024-03-26 4643/week @ 2024-04-02 4012/week @ 2024-04-09 7806/week @ 2024-04-16 8716/week @ 2024-04-23 9942/week @ 2024-04-30 9122/week @ 2024-05-07

36,277 downloads per month
Used in 46 crates (44 directly)

MIT license

28KB
661 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)

Used in

Dependencies

~0.9–6.5MB
~25K SLoC