#tui #ratatui #crossterm #tokio #events #async #applications

fiadtui

Simple TUI event loop for ratatui with tokio and crossterm

8 breaking releases

0.9.0 Oct 30, 2023
0.7.0 Oct 26, 2023

#686 in Command-line interface

Download history 15/week @ 2024-02-15 35/week @ 2024-02-22 1/week @ 2024-02-29 2/week @ 2024-03-07 11/week @ 2024-03-14 29/week @ 2024-03-28 29/week @ 2024-04-04

58 downloads per month

BSD-2-Clause-Patent

12KB
245 lines

Docs Docs

fiadtui

Simple TUI wrapper for ratatui with tokio and crossterm.

Example usage

Counter application

The classic counter (press + to increment, - to decrement).

Link

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.

Link

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.

Link

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–16MB
~171K SLoC