[go: up one dir, main page]

Crate anstyle_svg

Crate anstyle_svg 

Source
Expand description

Convert ANSI escape codes to SVG and HTML

See Term

§SVG Example

let vte = std::fs::read_to_string("tests/rainbow.vte").unwrap();
let svg = Term::new().render_svg(&vte);

demo of supported styles

§HTML Example

let vte = std::fs::read_to_string("tests/rainbow.vte").unwrap();
let html = Term::new().render_html(&vte);

Structs§

HtmlFragments
Contains the different parts of a HTML rendered page.
Palette
A color palette for rendering 4-bit anstyle::AnsiColor
Term
Define the terminal-like settings for rendering output

Constants§

VGA
Typical colors that are used when booting PCs and leaving them in text mode
WIN10_CONSOLE
Campbell theme, used as of Windows 10 version 1709.