8 breaking releases
0.9.0 | Oct 30, 2023 |
---|---|
0.7.0 | Oct 26, 2023 |
#1048 in Command-line interface
58 downloads per month
12KB
245 lines
fiadtui
Simple TUI wrapper for ratatui with tokio and crossterm.
Example usage
Counter application
The classic counter (press +
to increment, -
to decrement).
cargo run --example counter
Delayed counter application
Demonstrates the use of asynchronous message handlers.
Similar to the counter application, but updates the counter value asynchronously after 1 second. Further updates are dropped while any existing update is pending.
cargo run --example delayed_counter
External tick application
Demonstrates the use of a channel created externally.
A Tick
message is sent every 500ms to the app, from external code.
cargo run --example tick
lib.rs
:
Simple async TUI wrapper based on ratatui, crossterm & tokio.
This library provides a very simple event loop around ratatui's abstractions.
Dependencies
~8–15MB
~179K SLoC