Skip to content

feat: support ansi colors in startup script logs #7037

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

Merged
merged 1 commit into from
Apr 6, 2023
Merged

Conversation

kylecarbs
Copy link
Member

@kylecarbs kylecarbs commented Apr 6, 2023

This will help with beautiful output for devcontainers!

image

@kylecarbs kylecarbs requested a review from BrunoQuaresma April 6, 2023 17:20
@kylecarbs kylecarbs self-assigned this Apr 6, 2023
@kylecarbs kylecarbs requested a review from bpmct April 6, 2023 17:21
This will help with beautiful output for devcontainers!
@kylecarbs kylecarbs merged commit e114999 into main Apr 6, 2023
@kylecarbs kylecarbs deleted the ansicolors branch April 6, 2023 17:39
@github-actions github-actions bot locked and limited conversation to collaborators Apr 6, 2023
@@ -73,7 +79,11 @@ export const LogLine: FC<{
<span className={styles.space}>&nbsp;&nbsp;&nbsp;&nbsp;</span>
</>
)}
<span>{line.output}</span>
<span
dangerouslySetInnerHTML={{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is dangerouslySetInnerHTML XSS friendly? I don't know hence asking.

@bpmct bpmct added this to the devcontainer support milestone Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants