Replacement for ANSI.SYS at the command prompt?

S

Stan Brown

I have a program that emits ANSI.SYS control sequences to highlight
parts of its text output in certain colors. As you know, cmd.exe
doesn't honor those sequences even if ANSI.SYS is installed.

Is there some way for a running program to write codes that XP's
command prompt will accept as changing the text foreground and
background colors? I'd like to change the program so that it works in
XP as well as DOS.
 
J

Jerry

XP has both CMD.EXE and COMMAND.COM. Did you try using COMMAND.COM instaed
of CMD.EXE?
 
S

Stan Brown

XP has both CMD.EXE and COMMAND.COM. Did you try using COMMAND.COM instaed
of CMD.EXE?

That would most likely work for me, but it seems an unreasonable
restriction to place on users of the program that I write.

Aren't there any codes that will work in XP?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top