| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
| Message-ID: | <000801c1b447$16bf5480$b95b560c@ws1> |
| From: | "Warren Simmons" <wlsimmons AT worldnet DOT att DOT net> |
| To: | <djgpp AT delorie DOT com> |
| Subject: | ansi escape codes do not work using DJGPP gpp command |
| Date: | Tue, 12 Feb 2002 22:29:54 -0600 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 5.00.2919.6600 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
| Reply-To: | djgpp AT delorie DOT com |
This is a multi-part message in MIME format.
------=_NextPart_000_0005_01C1B414.CAFFEC80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
To Whom It may Concern:
This is a post for the djgpp forum or a question that perhaps one of you =
could answer.
I use the ansi escape codes for various screen functions. To clear the =
screen I #include <stdio.h> and include the line: printf("\33[2J"); =
wherever I want the screen to clear. It works on GNU g++ (Linux) but =
when I use it with DJGPP (gpp -Wall somefile.cpp) the outpu of the .exe =
at that point will print to the screen the following: --[2Jthen the =
cout from the next line. How can I get around this. I use this to clear =
the screen. I have a locate x,y function the uses ansi escape code. Its =
very useful. Also...can djgpp print out the acsii extended character set =
(128 to 256 symbols)?
wsimmons AT uab DOT edu
wlsimmons AT worldnet DOT att DOT net
------=_NextPart_000_0005_01C1B414.CAFFEC80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>To Whom It may Concern:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This is a post for the djgpp forum or a =
question=20
that perhaps one of you could answer.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I use the ansi escape codes for various =
screen=20
functions. To clear the screen I #include <stdio.h> and include =
the=20
line: printf("\33[2J"); wherever I want the screen to clear. It =
works on=20
GNU g++ (Linux) but when I use it with DJGPP (gpp -Wall somefile.cpp) =
the outpu=20
of the .exe at that point will print to the screen the following: =20
--[2Jthen the cout from the next line. How can I get around this. I use =
this to=20
clear the screen. I have a locate x,y function the uses ansi escape =
code. Its=20
very useful. Also...can djgpp print out the acsii extended character set =
(128 to=20
256 symbols)?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:wsimmons AT uab DOT edu">wsimmons AT uab DOT edu</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:wlsimmons AT worldnet DOT att DOT net">wlsimmons AT worldnet DOT att DOT net</A>=
</FONT></DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0005_01C1B414.CAFFEC80--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |