sayanarijit/tui-input


TUI input library supporting multiple backends, tui-rs and ratatui

License: MIT

Language: Rust

Keywords: crossterm, input, ratatui, terminal, termion, tui, tui-rs


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)

Project Statistics

Sourcerank 13
Repository Size 61.5 KB
Stars 124
Forks 12
Watchers 3
Open issues 0
Dependencies 4
Contributors 5
Tags 19
Created
Last updated
Last pushed

Top Contributors See all

Arijit Basu Elvyria Steve Fan ckaznable micielski

Packages Referencing this Repo

tui-input
TUI input library supporting multiple backends
Latest release 0.11.0 - Updated - 124 stars

Recent Tags See all

v0.11.0 October 25, 2024
v0.10.1 August 26, 2024
v0.10.0 August 08, 2024
v0.9.0 June 29, 2024
v0.8.0 August 07, 2023
v0.7.1 May 23, 2023
v0.7.0 March 22, 2023
v0.6.1 November 13, 2022
v0.6.0 October 04, 2022
v0.5.1 September 10, 2022
v0.5.0 September 10, 2022
v0.4.2 May 30, 2022
v0.4.1 May 28, 2022
v0.4.0 May 16, 2022
v0.3.0 May 15, 2022

Something wrong with this page? Make a suggestion

Last synced: 2024-10-25 08:45:07 UTC

Login to resync this repository