So, I gave this patch a shot on my server, but I think the RE here needs to adjusted a bit...

For example, our build tool outputs "[1;32m" but this translates it to "ansi1" instead of "ansi32", so I get no colors. It does strip the junk out of the text, so that's a plus. I wonder if this could be fixed easily? Maybe add an optional "0;" or "1;" at the start of the RE to ignore them? That wont get all the ANSI possibilities, but I think the majority of ANSI output wont vary from "0;NNm", "1;NNm" or "NNm".