Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AGI-chandler opened this issue Jul 29, 2024 · 0 comments
Open

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

AGI-chandler opened this issue Jul 29, 2024 · 0 comments

Comments

@AGI-chandler
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant