I am making a console window RPG, yet I'm having problems clearing the entire console window. Is there a way for me to clear the entire console window with one command?
In computing, CLS (for clear screen) is a command used by the command-line interpreters COMMAND.COM and cmd.exe on DOS, Digital Research FlexOS, IBM OS/2, Microsoft Windows and ReactOS operating systems to clear the screen or console window of commands and any output generated by them.
Clearing the Screen: system("CLS"); When the screen is cleared in Visual C++, the cursor is moved to the upper left corner of the screen. To clear the screen in Visual C++, utilize the code: system("CLS"); The standard library header file <stdlib.
You can use the Clear() method:
Console.Clear();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With