Module term_transcript::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§
- Information about software used for rendering (i.e., this crate).
- Root data structure sent to the Handlebars template.
- Errors that can occur when parsing
NamedPalette
from a string. - Palette of 16 standard terminal colors (8 ordinary colors + 8 intense variations).
- RGB color with 8-bit channels.
- Options that influence the scrolling animation.
- Serializable version of
Interaction
. - Template for rendering
Transcript
s, e.g. into an SVG image. - Configurable options of a
Template
. - Values of 8 base terminal colors.
Enums§
- Line numbering options.
- Named
Palette
. - Text wrapping options.