Clear Terminal in C
I Am Facing Problem to Understand This Line of Code. Printf("\033[2J\033[1;1H"); This Printf Statement Is Used to Clear the Terminal in C. Can Anybody Explain...
I am facing problem to understand this line of code.
printf("\033[2J\033[1;1H");
This printf statement is used to clear the terminal in c. Can anybody explain this to me?
Thanks.
1 Answer
Take a look at the list of ANSI escape sequences:
ESC[2J : erases the entire screen
General information: