you can use the function
clrscr()
to clear the screen. in case u want to set the background to say blue after the screen is cleared, then use the following commands
textbackground(BLUE);
clrscr();
pl. note the correct header files <CONIO.h>are required for using this command.
also u can clear a window portion from the screen, the syntax is
window(tcol, trow, bcol, brow);
where tcol and trow represent top column and row and bcol and brow represents bottom column and row.
textbackground(BLUE);
clrscr();
textbackground(RED);
window(20, 10, 50, 20);
clrscr();
window(1,1,80,25);
the above commands first clears the screen and sets the screen color to blue, next creates a window from 10th row 20th column to 20th row 50th column with red background.
icici