Skip to main content

Crate katui_present

Crate katui_present 

Source
Expand description

Presenters: the only place that produces bytes. A presenter consumes a scene diff and writes to a Sink, which is stdout, a buffer, a socket or a test harness.

Modules§

blocks
The blocks fallback: pixels drawn as half-block and quarter-block glyphs over SGR truecolor, the one pixel path every color terminal understands.
cells
The cell presenter: scene cells as SGR sequences, plus the cursor and clear commands every presenter consumer needs. Every cell re-establishes its whole style because it cannot know what the cell before it left behind.
kitty
The kitty placement presenter: a placement diff as graphics APC frames, wrapped in synchronized output.
select
Backend selection: capabilities in, graphics backend out.
session
Terminal session sequences: alternate screen and cursor state, one enter, one leave, nothing between.
surface
Surface presenters: the kitty strategies (whole frames with alternating image ids, tile patches, terminal-side animation), sixel tiles for terminals without kitty graphics, and the damage-tracked blocks fallback every truecolor terminal runs.

Traits§

Sink
Where a presenter writes its output; every writer is a sink.