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 14:26:51 -0300 |
Lines: | 50 |
Message-ID: | <4107E1DB.1050302@acm.org> |
References: | <4106EABF DOT 9080407 AT acm DOT org> <175301c4746f$de0751b0$0600000a AT broadpark DOT no> <4107AA84 DOT 80401 AT acm DOT org> <1a8f01c474ae$dafd6e70$0600000a AT broadpark DOT no> |
Mime-Version: | 1.0 |
X-Trace: | news.uni-berlin.de U7FMEbs+/39OoOnBjUpocAE/AwzBgMUrP9aSoJl6nNJE7QisQ= |
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: > > >>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've always thought the 'P' in PC mean Personal. What's a sysadmin > messing with your setup for? > ;-) When a corporation has 1300+ PCs, they get people to standarize things and the 'personal' thing you are left is an account, even in a system like Win XP. > >>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? > > > Correct. A djgpp program is invoked by NTVDM which applies whatever > config.nt/autoexec.nt file there are in your system32-folder. Great! Thank for the explanation. I am now more confident I understand what's going on! > > Not sure there are any Registry settings for this, but you could > always override these files with a dummy.nt if you like. I've done that, > but for 4DOS.PIF. You should try editing the properties of command.com > (i.e. the %systemroot%\system32\command.pif file). Look under > 'Program | Advanced'. Will take note of this. As a comment, this behaviour end up very handy because it is more easy for the problem at hand (a port of an earlier DOS program) just keep the ANSI stuff than replace by some textual API (like I was thinking). Thanks for everyone who brought insight on this. If I see this question asked more three times I volunteer to write an entry for the FAQ ;-D -- Cesar Rabak
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |