tlaplus / vscode-tlaplus

TLA+ language support for Visual Studio Code
MIT License
357 stars 33 forks source link

Support ANSI escape sequence in trace explorer web view #320

Closed lemmy closed 10 months ago

lemmy commented 10 months ago

TLC supports ANSI escape sequences to, e.g., colorize counterexmples: Screenshot 2024-01-07 at 9 18 23 PM

The extension's webview should properly render the ANSI escape sequences:

image

https://github.com/rburns/ansi-to-html appears to come with the relevant functionality.

@afonsonf Please advice if https://github.com/rburns/ansi-to-html would be a sensible choice to support ANSI?

afonsonf commented 10 months ago

The library you used (https://github.com/sagemathinc/ansi-to-react) seems to be a good option yes

lemmy commented 10 months ago
image