| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| Date: | Wed, 28 Jul 2004 06:47:56 +0200 |
| From: | "Eli Zaretskii" <eliz AT gnu DOT org> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | djgpp AT delorie DOT com |
| Message-Id: | <2914-Wed28Jul2004064756+0300-eliz@gnu.org> |
| X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 |
| In-reply-to: | <4106EABF.9080407@acm.org> (message from Cesar Rabak on Tue, 27 |
| Jul 2004 20:52:31 -0300) | |
| Subject: | Re: Using ANSI escape sequences with DJGPP |
| References: | <4106EABF DOT 9080407 AT acm DOT org> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: Cesar Rabak <crabak AT acm DOT org>
> Newsgroups: comp.os.msdos.djgpp
> Date: Tue, 27 Jul 2004 20:52:31 -0300
>
> int main(void)
> {
> puts("\033[2J");
> return 0;
> }
>
> When run from a cmd window, the DJGPP version clears the screen, whereas
> the windows console version not.
>
> I looked for this information in the FAQ and could not find anything about.
>
> My theory is that in some way, the runtime for DJGPP manages to create a
> more 'DOS' environment (calling command.com which will load ANSI.NT).
>
> Am I correct?
No. DJGPP doesn't do anything to support ANSI escape sequences. SO
I'm surprised that the program did clear the screen for you when
compiled with DJGPP. Did you perhaps use a beta of the next version,
or linked in some non-default library, or did something else that
would make console I/O emulate the ANSI driver?
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |