home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_01
/
8n01093a
< prev
next >
Wrap
Text File
|
1990-02-19
|
380b
|
20 lines
*****Listing 1*****
cls ()
{
char *getenv(), *term, *cl;
term = getenv ("TERM");
if (!strcmp(term, "ansi"))
cl = "\033[2J\033[H";
else if (!strcmp(term, "wy50"))
cl = "\033*";
/* add other terminals ... */
/* if all else fails, try a form feed */
else
cl = "\f";
fputs (cl, stderr);
}