* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
"@(#) Copyright (c) 1980 Regents of the University of California.\n\
static char sccsid
[] = "@(#)tput.c 5.1 (Berkeley) %G%";
/* load me with -ltermlib */
/* #include <retrofit.h> on version 6 */
* clear - clear the screen
char *cp
= getenv("TERM");
if (tgetent(buf
, cp
) != 1)
pc
= tgetstr("pc", &pcbp
);
clear
= tgetstr("cl", &clbp
);
tputs(clear
, tgetnum("li"), putchar
);
exit (clear
== (char *) 0);