Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site lanl.ARPA
Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!genrad!teddy!panda!talcott!harvard!seismo!cmcl2!lanl!cib
From: cib@lanl.ARPA
Newsgroups: net.micro.pc
Subject: Re: Elementry "C" question for the PC
Message-ID: <19493@lanl.ARPA>
Date: Mon, 14-Jan-85 13:16:36 EST
Article-I.D.: lanl.19493
Posted: Mon Jan 14 13:16:36 1985
Date-Received: Wed, 16-Jan-85 16:24:50 EST
References: <1050002@acf4.UUCP>
Sender: newsreader@lanl.ARPA
Organization: Los Alamos National Laboratory
Lines: 18

> Does anybody know how to blank thhe screen using "C".
> I hhave been using line feeds but this is very slow.
> Is there a way to poke cls?   

The procedure suggested by Marc Meketon will not work
under PC-DOS, since ascii 12 is a graphics character in
that system.

If you are running under PC-DOS, add ansi.sys to your
config.sys file with "device = ansi.sys". Then from C
issue the command

printf("\033[H\033[2J");

Works fine for me.

Charles
cib@lanl