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(ansi): implement DecodeColor function #327

Merged
merged 7 commits into from
Jan 15, 2025
Merged

Conversation

aymanbagabas
Copy link
Member

This implements reading SGR colors according to the ITU T.416 and ECMA standards. It supports reading colors in the following formats: RGB, CMY, CMYK, and indexed colors. The function also supports reading color values separated by semicolons (;) and colons (:).

This implements reading SGR colors according to the ITU T.416 and ECMA
standards. It supports reading colors in the following formats: RGB, CMY,
CMYK, and indexed colors. The function also supports reading color values
separated by semicolons (;) and colons (:).
@aymanbagabas aymanbagabas changed the title feat(ansi): implement ReadColor function feat(ansi): implement DecodeColor function Jan 14, 2025
ansi/color.go Outdated Show resolved Hide resolved
ansi/color.go Outdated Show resolved Hide resolved
Copy link
Member

@caarlos0 caarlos0 left a comment

Choose a reason for hiding this comment

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

nice, was also thinking of moving this out of sequin.

also this impl looks better than the one there I think!

@aymanbagabas aymanbagabas merged commit 62b1fae into main Jan 15, 2025
8 checks passed
@aymanbagabas aymanbagabas deleted the ansi/readcolor branch January 15, 2025 12:26
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