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

ANSI escape codes for RGB values break when one of the values is 0 or 1 #63

Open
Lolabird opened this issue Dec 29, 2024 · 1 comment
Open

Comments

@Lolabird
Copy link

Hi! I'm new to using ANSI codes, so I may be missing something, but I noticed that when a 0 or 1 is added as an <r>,<g>, or <b> value, the color doesn't print as expected. The 0 resets the color and the 1 makes the color bold. There doesn't appear to be any issues with other numbers. From the small amount of testing I did, colors print as expected 2-255 in the <r>,<g>, or <b> placements. Also in case it's helpful, the languages I tested this in were Bash and Python.

@Lolabird
Copy link
Author

Lolabird commented Dec 29, 2024

Actually, it looks like it is affecting other numbers, as well. I just had an issue with the number 37 the <b> value doing something wonky as well. I think maybe there is some issue with the code treating rgb values as font effects or escape values instead of as color values.

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

No branches or pull requests

1 participant