Module svg

Source
Available on crate feature svg only.
Expand description

Provides templating logic for rendering terminal output in a visual format.

The included templating logic allows rendering SVG images. Templating is based on Handlebars, and can be customized to support differing layout or even data formats (e.g., HTML). The default template supports a variety of options controlling output aspects, e.g. image dimensions and scrolling animation.

§Examples

See Template for examples of usage.

Structs§

CreatorData
Information about software used for rendering (i.e., this crate).
HandlebarsData
Root data structure sent to the Handlebars template.
NamedPaletteParseError
Errors that can occur when parsing NamedPalette from a string.
Palette
Palette of 16 standard terminal colors (8 ordinary colors + 8 intense variations).
RgbColor
RGB color with 8-bit channels.
ScrollOptions
Options that influence the scrolling animation.
SerializedInteraction
Serializable version of Interaction.
Template
Template for rendering Transcripts, e.g. into an SVG image.
TemplateOptions
Configurable options of a Template.
TermColors
Values of 8 base terminal colors.

Enums§

LineNumbers
Line numbering options.
NamedPalette
Named Palette.
RgbColorParseError
Errors that can occur when parsing an RgbColor from a string.
WrapOptions
Text wrapping options.