in reply to Re: Error when using system("clear") command
in thread Error when using system("clear") command
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Error when using system("clear") command
by Anonymous Monk on Jul 15, 2009 at 10:56 UTC |