I made this tool to add support for custom ANSI palettes to kubetail (<a href="https://github.com/kubetail-org/kubetail">https://github.com/kubetail-org/kubetail</a>). Maybe you'll find it useful too.<p>Let me know if you have any suggestions!
Ah this is awesome. I've been working on a browser based mud client and none of the existing options handled everything I needed. I'll be switching to this immediately, it seems to solve all of my current problems with displaying ansi text in the browser.
Recently did something similar in Rust but for generating SVGs. We've adopted it for snapshot testing of cargo and rustc's output. Don't have a good PR handy for showing Github's rendering of changes in the SVG (text, side-by-side, swiping) but <a href="https://github.com/rust-lang/rust/pull/121877/files">https://github.com/rust-lang/rust/pull/121877/files</a> has newly added SVGs.<p>To see what is supported, see the screenshot in the docs: <a href="https://docs.rs/anstyle-svg/latest/anstyle_svg/" rel="nofollow">https://docs.rs/anstyle-svg/latest/anstyle_svg/</a>
It is unclear to what extent the ANSI control codes are implemented. The README mentions SGR and the 24-bit color extensions in the nonstandard semicolon syntax. What about cursor movements? Backspace? Overstriking?<p>Which "ANSI" did you use as reference?