Ratatouille v0.2.0 API Reference

Modules

Defines the behaviour for a stateful view component

Defines the behaviour for a stateless view component

A convenience wrapper of ExTermbox.Constants

Logic to render a view tree

Primitives for rendering borders

This defines the internal representation of a rectangular region---a box---for rendering, as well as logic for transforming these boxes

A canvas represents a terminal window (or a subdivision of it) and a sparse mapping of positions to cells

Primitives for rendering lines

Renders a layout with one or more columns

Primitives for rendering text

Utilities for rendering cells

In Ratatouille, a view is simply a tree of elements. Each element in the tree holds an attributes map and a list of zero or more child nodes. Visually, it looks like something this

A GenServer to manage the terminal window, along with a client API to perform updates and retrieve window information