Skip to main content

Module render

Module render 

Source

Structs§

RenderOpts
RenderState
Per-source rendering state that persists across line renders. Carries the SGR style register and the current OSC 8 hyperlink so that an unclosed \x1b[31m on line N keeps line N+1 red until reset.

Enums§

AnsiMode
How the renderer treats escape sequences in input bytes.
Cell
TrueColor
Whether the writer should pass 24-bit RGB colors through to the terminal or downsample to the 256-color cube first. Resolved once at startup.

Functions§

count_rows
render_line
rgb_to_256
Downsample 24-bit RGB to the xterm 256-color palette. Uses the standard 6×6×6 cube plus the 24-step grayscale ramp.