ccbrown / iocraft

A Rust crate for beautiful, artisanally crafted CLIs, TUIs, and text-based IO.
https://crates.io/crates/iocraft
Apache License 2.0
339 stars 5 forks source link

ANSI colors are wrong #28

Closed milesj closed 1 month ago

milesj commented 1 month ago

@ccbrown

First off, amazing library. I was a giant Ink fan (https://boostlib.dev/docs/cli) so am really excited for this.

I noticed that Color::AnsiValue renders the wrong colors. If I render 147, which should be a lavender/purple color, it actually renders yellow in the terminal. I tried a few other colors, and they were all wrong.

milesj commented 1 month ago

Edit: nevermind, spoke to soon. I had some custom enums that would be casted using as u8 but my indices were off.