click.style supports 256/RGB colors
Before adoption: this commit came in with the history the project adopted, so no landing records it.
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.
authored by lmjohns3 · committed by David Lord · parent 4ae204e · Browse files · 3 files+34 added−2 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+34 added−2 removed
- tests:+2 added−0 removed
- other:+32 added−2 removed