| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| From: | Cesar Rabak <crabak AT acm DOT org> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Using ANSI escape sequences with DJGPP |
| Date: | Wed, 28 Jul 2004 10:24:41 -0300 |
| Lines: | 39 |
| Message-ID: | <4107A919.7070609@acm.org> |
| References: | <4106EABF DOT 9080407 AT acm DOT org> <2914-Wed28Jul2004064756+0300-eliz AT gnu DOT org> |
| Mime-Version: | 1.0 |
| X-Trace: | news.uni-berlin.de E+nm9ExR8QAt+9ex7Y4MTg4ZlbD9w6LwFWmJsECBS6jPakm1I= |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.0.2) Gecko/20030208 Netscape/7.02 |
| X-Accept-Language: | pt-br, pt |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Eli Zaretskii escreveu:
>>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?
Checking more thoroughly the binutils package I use is the W2k patched
2.14 one (which is considered beta).
Other than that, I did not linked in any other library nor did any other
thing to have the (default) console emulate the ANSI driver.
What I have is the CONFIG.NT with 'device=%SystemRoot%\system32\ansi.sys'.
--
Cesar Rabak
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |