Expand description
A simple Elm architecture framework for ratatui.
The architecture is heavily inspired by iced. It provides an ergonomic interface forr executing long-running tasks in the background and handling events concurrently, while only re-rendering when strictly necessary.
See the hello world example for a basic usage example.
This framework provides a built-in subscription to terminal events. Do not manually
subscribe to events, as this will cause the two subscriptions to fight over each event.
§Features
This crate works with all three officially supported ratatui backends:
There is a cargo feature for each backend implementation. These feature flags are not mutually exclusive, though if you have only one enabled that backend will be used without manual specification.
Modules§
Structs§
- App
- A ratatui application.
- AppWith
Backend - Lets you construct an
Appwith a custom backend in a more convenient way. - Tokio
tokio
Enums§
Traits§
- Updater
- A trait for a struct that can update the state of the application.
- Viewer
- A trait for a struct that can render the state of the application.