jp2a icon indicating copy to clipboard operation
jp2a copied to clipboard

Truecolor support

Open gerion0 opened this issue 6 years ago • 2 comments

I noticed that the tool generates the whole color palette when generating HTML but seems restricted to 16(?) colors when generating ANSI codes.

Modern terminals also support truecolor. It would be nice, if jp2a could generate text for them or even better if there is a flag to control the amount of colors to output (also for HTML). Here I found a good summary of truecolor support for terminals.

gerion0 avatar Aug 16 '19 15:08 gerion0

Definitely, but I'm not actively working on jp2a at the moment. Setting the "help wanted" label.

cslarsen avatar Sep 23 '19 18:09 cslarsen

I used jp2a to generate truecolor output for terminals by making it output HTML and transforming that output using sed and bash string manipulation. Check out aic.sh#L358-L474 from here:

https://github.com/art-institute-of-chicago/aic-bash

example

IllyaMoskvin avatar Dec 23 '19 17:12 IllyaMoskvin