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(yansi): Handle Bright foreground colors as bold #12

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

joshtriplett
Copy link
Contributor

@joshtriplett joshtriplett commented Aug 17, 2022

Right now, the "Bright" distinction is just ignored and they're folded into the same colors. But "bright" (e.g. "bright blue"), as far as I can tell historically, is a synonym for "bold" (e.g. "bold blue").

https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit

@epage
Copy link
Collaborator

epage commented Aug 17, 2022

Could you add more detail for why this is needed?

@joshtriplett
Copy link
Contributor Author

@epage Right now, the "Bright" distinction is just ignored and they're folded into the same colors. But "bright" (e.g. "bright blue"), as far as I can tell historically, is a synonym for "bold" (e.g. "bold blue").

https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit

@joshtriplett
Copy link
Contributor Author

Updated the commit message with that information.

@epage epage changed the title anstyle-yansi: Handle Bright foreground colors as bold fix: Handle Bright foreground colors as bold Aug 17, 2022
@epage epage changed the title fix: Handle Bright foreground colors as bold fix(yansi): Handle Bright foreground colors as bold Aug 17, 2022
The "Bright" distinction was previously ignored, and the bright colors
folded into the same colors as the non-bright. But "bright" (e.g.
"bright blue"), as far as I can tell historically, is a synonym for
"bold" (e.g. "bold blue"). See
https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit for more
information.
@epage epage merged commit 3e5ed9c into rust-cli:main Aug 17, 2022
@joshtriplett joshtriplett deleted the yansi-bright branch August 17, 2022 18:09
@epage epage mentioned this pull request Feb 6, 2023
epage added a commit to epage/anstyle that referenced this pull request Mar 28, 2024
…on-5.x

chore(deps): update actions/setup-python action to v5
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.

2 participants