You can use the sequence \e in a string or character constant to stand for the ASCII character [ESC].