www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/15/16:45:12

From: rrd AT ftc DOT agilent DOT com (Ray Depew)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DOS cursor/screen commands?
Date: Fri, 15 Nov 2002 21:43:56 +0000 (UTC)
Organization: Agilent Technologies
Lines: 38
Message-ID: <1037396636.65247@cswreg.cos.agilent.com>
References: <1037380690 DOT 391305 AT cswreg DOT cos DOT agilent DOT com> <Xns92C79139FBDB5asu1cornelledu AT 132 DOT 236 DOT 56 DOT 8>
NNTP-Posting-Host: cswreg.cos.agilent.com
X-Trace: cswtrans.cos.agilent.com 1037396636 9316 130.29.154.45 (15 Nov 2002 21:43:56 GMT)
X-Complaints-To: usenet AT cswtrans DOT cos DOT agilent DOT com
NNTP-Posting-Date: Fri, 15 Nov 2002 21:43:56 +0000 (UTC)
X-Newsreader: TIN [version 1.2 PL2.11]
Cache-Post-Path: cswreg.cos.agilent.com!unknown AT icbdxts2 DOT ftc DOT agilent DOT com
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

A. Sinan Unur (asu1 AT c-o-r-n-e-l-l DOT edu) wrote:
: rrd AT ftc DOT agilent DOT com (Ray Depew) wrote in
: news:1037380690 DOT 391305 AT cswreg DOT cos DOT agilent DOT com: 

: > I'm trying to do the equivalent of DOS "cls" in a C program.  When I
: > run the following program, all I get on stdout is the following three
: > lines. 
: >  * <http://www3.sympatico.ca/rhwatson/dos7/v-ansi-commands.html>
[...]

: did you actually read what it says on that page:

: "Once Ansi.sys has been loaded, it's various functions can be accessed at 
: any time by sending one or more "Escape Sequences" to the screen. An Escape 
: Sequence comprises three parts: "

I sure did.  I guess I just didn't understand it completely.

: and it is right there toward the top of the page. note the key phrase "Once 
: Ansi.sys has been loaded".

I wasn't sure what "ANSI.SYS" was, but I remembered having seen it on older
(pre-Win3.1, even) PCs during boot-up, so I shook my head to
try to clear the confusion, assumed that DOS was somehow using ANSI.SYS
already.

: so, decide if you want to use ansi.sys. if you do, then load it.
: otherwise, look at the documentation for conio functions.

huh.  I guess my question is more basic, then.  Rather than ask anyone to 
debug my program, I just want to know how to clear the screen from inside 
a C program.  


--
Regards 
Ray 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019