Apr 7, 2009 at 8:57pm
For Cygwin users without a simple
clear command on Win32:
1 2 3 4 5 6 7 8 9 10
|
// clear.cpp
#include <iostream>
using namespace std;
int main()
{
char a=27u;
cout << a << "[2J";
return 0;
}
|
To compile:
|
g++ clear.cpp -o clear.exe
|
Last edited on Apr 7, 2009 at 9:04pm
Apr 28, 2009 at 7:29pm
It'd be nice to see some kind of an explanation along with this code. I don't have any idea what this article is about.