Clear screen (system call)

/32767 tif at doorstop.austin.ibm.com
Sat Jun 16 08:25:33 AEST 1990


In article <5683 at aplcen.apl.jhu.edu> trw at aplcen.apl.jhu.edu (Weil timothy) writes:
>   what is a simple 'C' Unix system call for clearing
>   the terminal.  my guess is that it's buried somewhere
>   in curses.h...

No (correct) answer will consist of just a system call but
If that's all you intend to do (and you're not doing it every 2 seconds):

	system("tput clear");	/* this assumes a terminfo system */

Anything else doesn't fit the description of "simple".

Paul Chamberlain | I do NOT represent IBM	  tif at doorstop, sc30661 at ausvm6
512/838-7008	 | ...!cs.utexas.edu!ibmaus!auschs!doorstop.austin.ibm.com!tif



More information about the Comp.unix.questions mailing list