Better ANSI support

There were a couple Github issues with this exact problem and most of them were closed after 90 days. One user in particular (back in 2012) said that cursor positioning would be difficult. Travis-CI has come a long way! I doubt those issues still hold true today.

My issue is that I’ve rolled a small module that allows performance stats to be appended to the last line of a Mocha test. This works fine locally with several tools. Wallaby, Terminal, etc. Travis-CI seems to be doing something odd however. I use several ANSI codes to accomplish my goals and I’m not sure which one is to blame.

ANSI Codes:


And this is what Travis-CI does:

Sorry, but our logs are still streams and it would still be very hard to accommodate cursor-positioning ANSI Escape sequences.