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

grep ansi color log output doesn't work #1463

roller opened this Issue Oct 5, 2015 · 0 comments


None yet
2 participants

roller commented Oct 5, 2015

There seems to be extra terminfo codes that are used on OSX and Debian that don't work with rundeck. For example:

echo "This is a test." | grep --color=always test | less
This is a ESC[01;31mESC[KtestESC[mESC[K.

The html log ends up looking like this:

This is a <span class="ansi-mode-bold ansi-fg-red"></span>Ktest<span class="ansi-mode-normal"></span>K.

The ESC[K is defined according to bash hackers as "Clear line from current cursor position to end of line".

This example is running on Debian 8 (jessie). I don't know if this is platform specific due to terminfo, but I doubt it: I get the same grep output results with GNU grep 2.21 on OS X and GNU grep 2.20 on Debian jessie.

@gschueler gschueler added the bug label Oct 5, 2015

gschueler added a commit to gschueler/rundeck that referenced this issue Jul 11, 2017

@gschueler gschueler added this to the 2.9.0 milestone Jul 11, 2017

@gschueler gschueler closed this Aug 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment