how to clear the output console in code blocks?? why doesn't clrscr(); work in Code::Blocks but works in Borland??

I have already tried:

cout << "\x1b[2J\x1b[1;1H" << flush;
cls() ;
Edit
Report