On Sun, Mar 15, 2009 at 11:28 AM, <[email protected]> wrote:
> Please explain more ab out the IOCTL calls.
>
> I tried to clear the screen with something like
> printf("\x1B[2J"); but I couldn't get it to work.
This worked for me under gcc (CygWin) in the CygWin bash shell
$ cat clrscr.c
#include <stdio.h>
int main() {
printf("\x1B[2J");
return 0;
}
Haven't tried it under VC++ under the cmd shell but this kind of thing
used to work under DOS if you had ANSI.SYS loaded.
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi