Skip to content

Doesn't work with colourify / grc / generic colouriser #245

@AGI-chandler

Description

@AGI-chandler

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions