ANSI sequences use the form "\033[" -- with a left/opening square bracket... [ , not the right/closing one.