Escape ANSI codes in travis_wait()