"\033[1;1H\033[2J" is called a escape secquence. as old terminals are connected through serial cable which can only transmit ASCII codes.
special controls such as clear screen is sent though a escape secquence.(a esc key(27) followed by secquence of ASCII code .