tui-input

Crates.iotui-input
lib.rstui-input
version0.11.1
sourcesrc
created_at2021-11-04 07:49:50.777129
updated_at2024-11-27 09:16:08.666656
descriptionTUI input library supporting multiple backends
homepage
repositoryhttps://github.com/sayanarijit/tui-input
max_upload_size
id476496
size50,945
Arijit Basu (sayanarijit)

documentation

README

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)
Commit count: 51

cargo fmt