From: daz Date: 2004-05-11T10:33:54+09:00 Subject: [OT] cmd.exe & ANSI colour (was Re: [OT]Is Ruby Top 1 ...) Hugh Sasse wrote: > > Googling further as a result suggests that config.nt replaces > config.sys, but putting device=%systemroot%system32\ansi.sys (or > similar) in there will only affect command.com, not the cmd.exe > command prompt. A good summary of this seems to be > > http://gathering.tweakers.net/forum/list_messages/818790 > > but most of it passes me by as I can't read the language, which > looks to me as though it is Dutch. Babelfish agrees, mainly. One reply from the original poster says: ------------------------------------------------------------------- By MUBA - Wednesday 08 October 2003 02.11 Ah! I beautiful work-around have found! From cmd.exe you (of course! can) command.com call. And then works everything, however, good. From cmd.exe batch call echo with as contents ' command/c dingetjes in {ESC}[32mkleur!' works, however. Therefore I will to that prints mn perl-script so convert where ansi come look at echo going at, by means of command.coms. Probably none neat or beautiful solution, but I get what I have wanted: COLOUR! Very a lot thanks, elevator. You have sent me very terrible in the good direction, and I weet not or I differently this way fast behind be come. Tof! ------------------------------------------------------------------- BTW: The Perl module they speak of has a Ruby port: [ANN] http://ruby-talk.org/89997 http://rubyforge.org/projects/win32console/ (by Gonzalo Garramuno using the Michael L. Semon library) I was prepared for this not to work for me when I tried it (with no ANSI.SYS loaded) and found that it did (Win9x). > > This lack of support in cmd.exe amazes me: PCs have supported colour > since the late 80's.... I could see nothing from Microsoft on the > topic, not even deprecating its use, for some reason. > They confirm the shocking news: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q101875 (mentioned in the page you linked to) daz