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

Fix incorrect categorization of ANSI SGR sequences. #2856

Merged
merged 3 commits into from
Feb 12, 2024

Conversation

eth-p
Copy link
Collaborator

@eth-p eth-p commented Feb 12, 2024

This fixes #2185 and adds a unit test to catch regressions.

Specifically, prevent other attributes from leaking into the
bold/dim/italic/underline attributes, and ensure that bright backgrounds
are put into the background attribute instead of the foreground
attribute.
@eth-p eth-p changed the title fix 2185 Fix incorrect categorization of ANSI SGR sequences. Feb 12, 2024
This adds a regression test for the fix in the previous commit.
Copy link
Owner

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

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

Thank you!

@sharkdp sharkdp merged commit 1b9fc1d into sharkdp:master Feb 12, 2024
22 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.

Issue handling text with escape sequences already embedded
2 participants