Quote:
|
Originally Posted by ugotamail hi , i write C program in TC ( turbo C ) . there is a command " clrscr() " to clear the screen. i need equivalent command in linux so that i can use that in my program. i am usuing g++ compiler. |
a few methods:
1) Ncurses. This is a C libary and i beleive it may have something there to do what you want.
2) system() call. "man 3 system", its in stdlib.h IIRC, just call system("clear"); (this may not work, i dont know)
3) int i; for(i=0; i != 60; i++) printf("\n");