Handle escape codes from git