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§
- Creator
Data - Information about software used for rendering (i.e., this crate).
- Handlebars
Data - Root data structure sent to the Handlebars template.
- Named
Palette Parse Error - 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.
- Scroll
Options - Options that influence the scrolling animation.
- Serialized
Interaction - Serializable version of
Interaction
. - Template
- Template for rendering
Transcript
s, e.g. into an SVG image. - Template
Options - Configurable options of a
Template
. - Term
Colors - Values of 8 base terminal colors.
Enums§
- Line
Numbers - Line numbering options.
- Named
Palette - Named
Palette
. - RgbColor
Parse Error - Errors that can occur when parsing an
RgbColor
from a string. - Wrap
Options - Text wrapping options.