// A fragment of C++ code that can clear your Cygwin (bash shell) terminal window #include #include using namespace std; int main() { // to clear use either this system("clear"); // or this cout << "\x1b[2J"; return 0; }