๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.nt.admin.misc
Article #194

Re: Color under Windows NT and Windows 2000

#194
From: Andrew Rossmann
Date: Wed, 24 May 2000 00:00
37 lines
2248 bytes
"Aur๏ฟฝlien" wrote:

> Hello !
>
> I have problems to have color under MS-DOS with Windows NT and Windows 2000
> Professional. I added the line
> "DEVICE=%SystemRoot%\system32\ansi.sys" in the c:\WINNT\system32\config.nt
> file and it doens't work !!
> Here is the contents of this file:
>
> CONFIG.NT
> --------------
> dos=high, umb
> device=%SystemRoot%\system32\ansi.sys
> device=%SystemRoot%\system32\himem.sys
> files=40
>
> I made a perl script that uses color and I don't get color but the
> corresponding codes.
> I added the line "DEVICE=c:\Windows\command\ansi.sys" in the c:\config.sys
> file with Windows98 and it works. So, why doesn't it work with Windows NT
> and Windows 2000 ?

  The ANSI.SYS driver will ONLY work with 16-bit command prompts. If you run
COMMAND, you will get ANSI color control. Normally, NT uses CMD.EXE, which is
32-bit. CONFIG.NT is only used when 16-bit programs start up. You don't
normally want to use COMMAND.COM as your command prompt, as you lose too many
features, and it has a few other odd problems.

  If you want color at a command prompt, you can try 4NT from
www.jpsoftware.com. This is a replacement for CMD.EXE, and I beleive it has
ANSI support built-in?

--
If there is a no_junk in my address, please REMOVE it before replying!
All junk mail senders will be prosecuted to the fullest extent of the law!!
http://www.ntsource.com/~andyross
Technical Details
Message-ID: <392C16C3.171DD982@ntsource.no_junk.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <70UW4.1828$vX1.6911141@nnrp3.proxad.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fb9cd,7528e4aa30c12290
X-Google-Attributes: gidfb9cd,public
X-Google-Thread: ff79f,7528e4aa30c12290
X-Google-Attributes: gidff79f,public
X-Google-Thread: f782f,7528e4aa30c12290
X-Google-Attributes: gidf782f,public
From: Andrew Rossmann <andyross@ntsource.no_junk.com>
Subject: Re: Color under Windows NT and Windows 2000
Date: 2000/05/24
Message-ID: <392C16C3.171DD982@ntsource.no_junk.com>
X-Deja-AN: 626812878
Content-Transfer-Encoding: 8bit
References: <70UW4.1828$vX1.6911141@nnrp3.proxad.net>
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: newsabuse@supernews.com
Organization: Never
MIME-Version: 1.0
Newsgroups: comp.os.ms-windows.nt.admin.misc,comp.os.ms-windows.nt.misc,fr.comp.os.ms-windows.winnt