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

click.style: add support for 256/RGB colors #1429

Merged
merged 1 commit into from
Aug 13, 2020
Merged

click.style: add support for 256/RGB colors #1429

merged 1 commit into from
Aug 13, 2020

Conversation

lmjohns3
Copy link
Contributor

This adds support for true-color text (using the \033[38;2;RRR;GGG;BBB escape sequence) and 256-color palette (using the \033[38;5;NNN escape sequence). It's backwards compatible with the current string-based colors, but adds a type-checking helper to handle integers or tuples/lists of 3 integers.

@jcrotts jcrotts added this to the 8.0 milestone Dec 3, 2019
@Zethson
Copy link

Zethson commented Jan 8, 2020

Very nice!

This adds support for true-color text (using the \033[38;2;RRR;GGG;BBB
escape sequence) and 256-color palette (using the \033[38;5;NNN escape
sequence). It's backwards compatible with the current string-based
colors, but adds a type-checking helper to handle integers or
tuples/lists of 3 integers.
@davidism davidism merged commit 0d43812 into pallets:master Aug 13, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
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.

4 participants