handling of diverged branch
fix escaping of color sequences