The carriage character before the other character is the escape sequence for the control character (one of the characters with code points from 0 to 31). ^ [is an escape character named ESC and usually introduces escape sequences for your terminal. This is what your keyboard sends when you press the up arrow.
source share