#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

#1005 in Command-line interface

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–15MB
~179K SLoC