- Jan 21, 2005
- 17,722
- 6
- 81
I can't find the command to clear the screen when I run the .exe that I compiled.
What command do I put in my source code?
What command do I put in my source code?
Originally posted by: xtknight
printf( "\33[2J"); // Example in C/C++
That works for me under Linux/GCC. I don't know about Windows, but it should.
And this makes it do everything including return the cursor to the beginning:
printf( "\033[0m\033[2J\033[H");