ansi.sys driver not loaded?

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.
 
P

Pennywise

(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.
 
A

antonelli

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.
 
P

Pennywise

(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.
 

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