ansi2html icon indicating copy to clipboard operation
ansi2html copied to clipboard

Doesn't work with colourify / grc / generic colouriser

Open AGI-chandler opened this issue 6 months ago • 0 comments

I don't understand why it doesn't work with a colorizer such as grc.

Once grc is installed and activated, it will add a bunch of aliases to your environment, such as alias ip="colourizer ip" which colorizes the output of ip addr like so:

grc output of ip addr

Yet, neither ansi2html, aha, nor ansi2html.sh are able to process these ansi color codes, and their html output just has boring plain text.  Example from a 2nd machine:

ansi2html output of grc output of ip addr

Any idea why?  The colors from ls are captured just fine.  In fact, grc will add color to the other columns of ls -l:

grc output of ls -l

Yet, ansi2html ignores the color added by grc while still parsing the color (and links!) added by ls:

ansi2html output of grc output of ls -l

Weird!

AGI-chandler avatar Jul 29 '24 00:07 AGI-chandler