prettyprinter
prettyprinter copied to clipboard
Support for full color palette
Why is there only support for 16 colors? The full palette would be cool! :grin:

There’s not enough supply or demand for this feature. ;-)
😭
You could easily implement this though if you needed it! Just extend data Color by a field RGB Word8 Word8 Word8 and follow the compiler warnings to implement it. ansi-terminal has support for RGB SGR codes (link), so all in all this should not be a hard thing to implement.
I’m very much open to a pull request if you decided to implement this, but at the moment I’m afraid I don’t have the time myself.
Would you still be amenable to a patch in this direction? I just asked the same question and came to the same https://hackage.haskell.org/package/ansi-terminal-0.10.1/docs/System-Console-ANSI-Types.html#v:SetRGBColor constructor which perhaps we can pass through instead? (I note that it's Colour Float there, which is interesting)
Yes, I’m open to it! I’d like to keep the feature small though, without too many color management bells and whistles.
If @afcowie hasn't got the patch done, I'll do one over the next couple of days.
@spacekitteh haven't had a chance yet, sorry.
Reopening due to the renewed interest.
Re-closing due to renewed disinterest ;-)
A PR implementing this would still be welcome though.
Re-re-opening since there is a PR: #224.