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

#49 in Command-line interface

Download history 743/week @ 2023-12-11 532/week @ 2023-12-18 516/week @ 2023-12-25 2084/week @ 2024-01-01 2228/week @ 2024-01-08 1651/week @ 2024-01-15 1614/week @ 2024-01-22 1308/week @ 2024-01-29 1461/week @ 2024-02-05 1207/week @ 2024-02-12 1252/week @ 2024-02-19 1676/week @ 2024-02-26 1556/week @ 2024-03-04 5651/week @ 2024-03-11 4614/week @ 2024-03-18 4822/week @ 2024-03-25

16,734 downloads per month
Used in 39 crates (37 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–7MB
~26K SLoC