Skip to main content

Module headless

Module headless 

Source
Expand description

In-memory backend for testing. Stores presented content and allows injecting synthetic events.

Headless::format_view renders the current frame for snapshot testing (e.g. with insta) and Headless::push_event queues synthetic input for a test to drive directly, or to feed through TestHarness when a full App loop is involved.

Headless::format_styled emits Select Graphic Rendition (SGR) parameters via crate::color::sgr, shared with retroglyph-recorder’s asciicast export so the two encoders can’t drift apart.

Structs§

Headless
In-memory backend for testing.