ansi.sys driver not loaded?

  • Thread starter Thread starter antonelli
  • Start date Start date
A

antonelli

hi,

I have a c++ program in wxp pro that outputs some formatted data on the
console using printf. I want to use the ansi escape sequences such as
printf("\033") to clear the screen.

I added the following line in my c:\windows\system32\config.nt file:

device=c:\windows\system32\ansi.sys

and restarted but apparently nothing changed.

Does someone can help me?
how can I verify if the driver is correctly loaded?

thanks in advance,
g.
 
(e-mail address removed) wrote:

|>hi,
|>
|>I have a c++ program in wxp pro that outputs some formatted data on the
|>console using printf. I want to use the ansi escape sequences such as
|>printf("\033") to clear the screen.
|>
|>I added the following line in my c:\windows\system32\config.nt file:
|>
|>device=c:\windows\system32\ansi.sys
|>
|>and restarted but apparently nothing changed.
|>
|>Does someone can help me?
|>how can I verify if the driver is correctly loaded?

Believe you need to use command.com instead of CMD for it to work.
 
Believe you need to use command.com instead of CMD for it to work.

thanks for the reply. I would like to ask you some more details.

how do I impose to a c++ application to run a command.com shell instead
of a cmd?

thanks,
g.
 
(e-mail address removed) wrote:

|>[email protected] wrote:
|>
|>> Believe you need to use command.com instead of CMD for it to work.
|>
|>thanks for the reply. I would like to ask you some more details.
|>
|>how do I impose to a c++ application to run a command.com shell instead
|>of a cmd?
|>

? if it won't run under command.com try a Third Party, Dosbox
http://dosbox.sourceforge.net/news.php?show_news=1

I use it for older dos stuff.
 
Back
Top