Discussion Locked

Colors in win32 console apps

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I can not get the textattr(), textcolor() or textbackground() functions in the conio.h to work in my C++ programs. Can anyone tell me why. I am using Visual Studio Pro to compile and write these programs. Any help would be great.

2 replies

by p.j.hutchison

Add the following line to your CONFIG.NT command to enable ANSI command sequences:

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

This discussion is closed to new replies.