this is the appropriate method for both *nix and win. Using the system("clear") | system("cls") is not a safe practice.int Clear() { //clears and sets the cursor to home position std::cout << "\x1B[2J"; std::cout << "\x1B[0;0H"; }
In reply to Re^2: Error when using system("clear") command
by Anonymous Monk
in thread Error when using system("clear") command
by valavanp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |