fixing ANSI escape sequences in prompt