Skip to content
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

Fixes hex color serialization #4833

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Fixes hex color serialization #4833

merged 2 commits into from
Nov 2, 2023

Conversation

arcanis
Copy link
Contributor

@arcanis arcanis commented Oct 4, 2023

I may be missing something, but it looks like the # character is missing from the generated colors, so the HTML serialization doesn't work.

edit: Unrelated but also weird, includeGlobalBackground actually still include a background, except that it's hardcoded to a white background. It probably should just skip assigning the global styles?

Copy link
Contributor

@silamon silamon left a comment

Choose a reason for hiding this comment

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

It's possible that it wasn't tested during initial implementation. Thanks for the fix.

includeGlobalBackground uses the configured foreground and background of the terminal. When false it defaults to black color and white background indeed. I kind of agree it can be improved.

@Tyriar Tyriar added this to the 5.4.0 milestone Nov 2, 2023
@Tyriar Tyriar self-assigned this Nov 2, 2023
@Tyriar Tyriar enabled auto-merge November 2, 2023 16:25
@Tyriar Tyriar merged commit c9f1545 into xtermjs:master Nov 2, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants