You don't own the console, and should NEVER assume that you do.
Therefore you should NEVER try to clear it and should NEVER assume that no other process writes to it.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
There is no direct way to "clear the screen" (except printing out a bunch of blank lines), and yes there is something to the effect of system("COMMAND");
Check out the Runtime and/or ProcessBuilder classes.
But the advice by jwenting is correct.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
It's just as bad in C++ to assume you own the console.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337