Mail Archives: djgpp/2002/11/15/16:45:12
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 -