delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/07/28/09:45:06

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:30:44 -0300
Lines: 40
Message-ID: <4107AA84.80401@acm.org>
References: <4106EABF DOT 9080407 AT acm DOT org> <175301c4746f$de0751b0$0600000a AT broadpark DOT no>
Mime-Version: 1.0
X-Trace: news.uni-berlin.de fr2YAAUurfXjz/kMb+mv/AsSs4I91TCX33GNas5AUGZA2jL1Q=
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

Gisle Vanem escreveu:
> "Cesar Rabak" <crabak AT acm DOT org> said:
> 
> 
>>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).
> 
> 
> What's ANSI.NT? Or do you mean djgpp programs causes CONFIG.NT
> drivers/settings to be used. So if you have an ansi.sys driver there,
> it should clear the screen. Nothing new about that. 

OK. The machine I use has a file 'CONFIG.NT' that loads ANSI.SYS. The 
file "ANSI.NT" was put by the sysadmin as a remark in case an update 
wipes the CONFIG.NT (I checked this today with her).

I'll ask her to temporarily comment the ANSI line in CONFIG and redo the 
tests, as it seems from your post that this is expected behaviour.

So just to check my understanding: Given the ANSI.SYS driver available 
(via CONFIG.NT), a DJGPP program will work if using escape sequences 
even if invoked from a CMD.EXE command prompt?

> 
> But MingW uses the WinCon API which doesn't grok ANSI w/o a 
> special device-driver.

OK.

Thanks,

--
Cesar Rabak


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019