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; see “Driving Headless with synthetic
events”
for the full workflow.
The styled-snapshot encoders (Headless::format_styled, sgr_color) emit Select Graphic
Rendition (SGR) parameters per ECMA-48 5th ed. section 8.3.117: 30-37/40-47 for the standard
foreground/background colors, 90-97/100-107 for the bright variants, 38;5;n/48;5;n for
256-color indices, and 38;2;r;g;b/48;2;r;g;b for 24-bit truecolor.
(https://www.ecma-international.org/publications-and-standards/standards/ecma-48/)
Structs§
- Headless
- In-memory backend for testing.