A3S Docs
A3S TUI

A3S TUI

Rust TEA framework for terminal applications with Flexbox layout, incremental rendering, and reusable components.

A3S TUI

a3s-tui is a Rust terminal UI framework built around The Elm Architecture: model, update, view. It is the UI framework used by the a3s code terminal agent, but it is a reusable library rather than the agent runtime.

The current crate is a3s-tui 0.1.4.

Capability Map

AreaCurrent capability
ArchitectureTEA model-update-view loop with async Tokio runtime.
RenderingDeclarative element tree, Taffy Flexbox layout, and incremental line-diff rendering.
Terminal inputKeyboard, resize, mouse support, focus management, and Vim-like keymap helpers.
StylingANSI/RGB colors, borders, spacing, dimensions, text styles, wrapping, and CJK-aware width handling.
MarkdownCommonMark rendering with syntax highlighting through syntect.
ComponentsRich component set including tables, tabs, modals, diff views, task queues, text editors, logs, timelines, split panes, and status bars.
ValidationHeadless terminal integration tests and rendering benchmarks.

Start Here

  • Architecture explains the TEA flow, element model, program builders, layout, and input model.
  • Components maps the component families exported by a3s_tui::components.
  • Rendering And Testing covers incremental rendering, markdown, animation/theme support, examples, tests, and benchmarks.

Relationship To a3s code

a3s code embeds A3S Code for the agent loop and uses A3S TUI to render the terminal surface. The runtime API and the UI framework are intentionally split: product teams can build a different UI over the same A3S Code event stream.

Install

[dependencies]
a3s-tui = "0.1"

On this page