Use of Color in C++

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2006
Posts: 2
Reputation: mogey is an unknown quantity at this point 
Solved Threads: 0
mogey mogey is offline Offline
Newbie Poster

Use of Color in C++

 
0
  #1
Jan 6th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Use of Color in C++

 
0
  #2
Jan 6th, 2006
Which compiler are you using?
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 2
Reputation: mogey is an unknown quantity at this point 
Solved Threads: 0
mogey mogey is offline Offline
Newbie Poster

Re: Use of Color in C++

 
0
  #3
Jan 6th, 2006
The one in Microsoft Visual studio where you use a 'comand prompt window' "cl -GX filename.cpp"
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 27
Reputation: calcop is an unknown quantity at this point 
Solved Threads: 0
calcop calcop is offline Offline
Light Poster

Re: Use of Color in C++

 
0
  #4
Jan 16th, 2006
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.

-matt
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC