what is the function to clear screen???
This is a discussion on clear screen function within the C Programming forums, part of the General Programming Boards category; what is the function to clear screen???...
what is the function to clear screen???
Sue B.
dazed and confused
There is no ANSI function to clear the screen. It is going to depend on what type of programming you're doing, and on what OS.
In a console window, under dos/windows, you can do:
system("cls");
There is also an ansi escape sequence you can use.
puts( "\e[2J" );
Quzah.
O/S is UNIX (Solaris I think)
Sue B.
dazed and confused
execlp("clear",0);
or execlp("tput clear",0);
Read this...
http://www.cprogramming.com/boardfaq.html#clear
Ramble on...