Can anyone help here. I want to have some color in the intro page the a database program I am creating. DOS based. ie it will be used in a 98 OS in dos.
Which compiler are you using?
The one in Microsoft Visual studio where you use a 'comand prompt window' "cl -GX filename.cpp"
I don't to much windows/dos programming, but I think there is a library. You can also use ncurses, I think there is a windows version in Cygwin (http://www.cygwin.com/). Also, if it works in dos, you can just make your own quick library to print ANSI commands, for example "\e[0;31m" then your text would make it red. You can find a list of ANSI escape codes at http://www.bluesock.org/~willg/dev/ansi.html. Hope this helped.
We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.