better attempt at handling ANSI colors in prompt