Crate ratatui_elm

Source
Expand description

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 rerendering when strictly necessary.

See the hello world example for a basic usage example.

This framework provides a built-in subscription to crossterm events. Do not manually construct an instance of EventStream, as crossterm only sends events to one stream at a time, and the construction of a second stream will cause the two to fight over each event.

Structs§

App
A ratatui application.

Enums§

Task
A task to be executed by the runtime.
Update
A message to be sent to the application.

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.