#ansi-term #svg #ansi

anstyle-svg

Convert ANSI escape codes to SVG

13 releases

0.1.12 Nov 19, 2025
0.1.11 Sep 17, 2025
0.1.10 Aug 5, 2025
0.1.9 Jun 16, 2025
0.1.3 Feb 22, 2024

#1299 in Command-line interface

Download history 32090/week @ 2025-09-17 40266/week @ 2025-09-24 38685/week @ 2025-10-01 34659/week @ 2025-10-08 35471/week @ 2025-10-15 39371/week @ 2025-10-22 46347/week @ 2025-10-29 41789/week @ 2025-11-05 31084/week @ 2025-11-12 42671/week @ 2025-11-19 39560/week @ 2025-11-26 40833/week @ 2025-12-03 41051/week @ 2025-12-10 37588/week @ 2025-12-17 27506/week @ 2025-12-24 25244/week @ 2025-12-31

136,608 downloads per month
Used in 25 crates (3 directly)

MIT/Apache

185KB
3.5K SLoC

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);

anstyle-svg

Convert ANSI escape codes to SVG

Documentation License Crates Status

License

Licensed under either of

at your option.

Contribute

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.

Dependencies

~1.5MB
~26K SLoC