-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Decrease dependencies and maintenance burden #1306
Comments
Thank you for the feedback. The 24-bit => 8-bit color interpolation code comes from |
We have 256 color support, console-rs/console#72. Is it what you mean? |
No. This is what the
Or in code: // Approximate true-colour by colour in the palette:
let rgb = (100, 200, 150);
let index = ansi256_from_rgb(rgb);
println!("{:?} ~ {:-3} {:?}", rgb, index, rgb_from_ansi256(index)); |
My bad then, I got confused with the name. |
And |
Yeah. Want to note that |
Thank you for the note. I guess there is a ticket somewhere documenting that decision and the reasons behind it? I'd be interested to read that. |
I also want to note that it needed quite a bit of architecture refactor in clap since the philosophy on how the output is constructed is a bit different compared to |
You can reduce the dependency list by removing
ansi_term
andansi_colours
sinceconsole
has the same capability (and more since it handles old windows too).I haven't looked at other dependencies though.
The text was updated successfully, but these errors were encountered: