-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ANSI escape sequence in trace explorer web view #320
Labels
enhancement
New feature or request
Comments
lemmy
added a commit
that referenced
this issue
Jan 8, 2024
The library `ansi-to-react` automatically wraps the content of `value.str` in a `<code>` tag. This results in the text being displayed with a distinct color and a grayish background. Ideally, `ansi-to-react` would not insert a `<code>` tag. However, the tag is [hardcoded into the library](https://github.com/lemmy/ansi-to-react/blob/681753c5e897c80c3afb269f9b3bbf33abab2a2e/src/index.ts#L170). Polishes Github issue #320 #320 [Feature] Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
lemmy
added a commit
that referenced
this issue
Jan 8, 2024
Moar fun: microsoft/vscode#200708 (comment) Fixes build breakage of Github issue #320 #320 [Feature] Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
lemmy
added a commit
that referenced
this issue
Jan 8, 2024
The library `ansi-to-react` automatically wraps the content of `value.str` in a `<code>` tag. This results in the text being displayed with a distinct color and a grayish background. Ideally, `ansi-to-react` would not insert a `<code>` tag. However, the tag is [hardcoded into the library](https://github.com/lemmy/ansi-to-react/blob/681753c5e897c80c3afb269f9b3bbf33abab2a2e/src/index.ts#L170). Polishes Github issue #320 #320 [Feature] Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
lemmy
added a commit
that referenced
this issue
Jan 8, 2024
Moar fun: microsoft/vscode#200708 (comment) Fixes build breakage of Github issue #320 #320 [Feature] Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
The library you used (https://github.com/sagemathinc/ansi-to-react) seems to be a good option yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TLC supports ANSI escape sequences to, e.g., colorize counterexmples:
The extension's webview should properly render the ANSI escape sequences:
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?
The text was updated successfully, but these errors were encountered: