Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.52 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.52 KB

ratatui-elm

crates.io

A simple Elm architecture framework for ratatui.

The architecture is heavily inspired by iced. It provides an ergonomic interface for 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.

Warning

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 four 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.

Similarly, this crate can be used with any async runtime that is integrated with byor. Three runtimes are provided:

There are also features for each runtime that behave the same as the backend features.