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

feat: support 8-bit color #1576

Merged
merged 1 commit into from Apr 9, 2024
Merged

feat: support 8-bit color #1576

merged 1 commit into from Apr 9, 2024

Conversation

pd93
Copy link
Member

@pd93 pd93 commented Apr 3, 2024

Adds support for multiple ANSI attributes and 8-bit colours when specifying TASK_COLOR_X variables. Pairs nicely with the functionality in #1572.

You can specify multiple codes by separating them with a semicolon. For example: 31;1 will make the text bold and red. You can specify 8-bit colours by using the sequence 38;2;R;G;B for foreground colours and 48;2;R;G;B for background colours where R, G and B should be replaced with values between 0 and 255.

For convenience, you can also specify 8-bit foreground colours using a shorthand, comma-separated syntax: R,G,B. For example, 255,0,0 is equivalent to 38;2;255;0;0.

image

@andreynering andreynering merged commit 454fe65 into main Apr 9, 2024
13 checks passed
@andreynering andreynering deleted the support-8-bit-color branch April 9, 2024 00:49
andreynering added a commit that referenced this pull request Apr 9, 2024
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.

None yet

2 participants