Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clearing a screen

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Is there a way to clear the screen after a function has been called? i don`t want the remains of the old function on the screen in DOS.

thanks :)
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top