Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site spp2.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!zehntel!hplabs!sdcrdcf!trwrb!trwspp!spp2!jhull
From: jhull@spp2.UUCP
Newsgroups: net.micro.pc
Subject: Re: Elementry "C" question for the PC
Message-ID: <383@spp2.UUCP>
Date: Fri, 18-Jan-85 19:15:21 EST
Article-I.D.: spp2.383
Posted: Fri Jan 18 19:15:21 1985
Date-Received: Tue, 22-Jan-85 05:05:45 EST
References: <1050002@acf4.UUCP> <24700095@uiucdcs.UUCP>
Reply-To: jhull@spp2.UUCP (Jeff Hull)
Organization: TRW, Redondo Beach  CA
Lines: 26
Summary: 

In article <24700095@uiucdcs.UUCP> hohensee@uiucdcs.UUCP writes:
>The easiest way, really, is to set your PC up with an
>ANSI device driver ... by including "DEVICE=ANSI.SYS" 
>as a line in your CONFIG.SYS file.  This will open a
>world of screen functions up to the programmer.  Check
>out chapter 13 on Extended Keyboard functions in the DOS
>manual.
>
>Then to clear the screen simply:
>
>#define ESCAPE 27
>clear_screen()       {    printf("%d[2J", ESCAPE);    }

In the interest of keeping your programs a reasonable size, you might
want to get into the habit of 

	clear_screen()       {    puts("\027[2J");    }

printf is pretty big.  If it's not used elsewhere in your program,
...
-- 
					Blessed Be,

 					Jeff Hull
 {ihnp4}trwrb!trwspp!spp2!jhull		13817 Yukon Ave.
					Hawthorne, CA 90250