By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,148 Members | 1,447 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,148 IT Pros & Developers. It's quick & easy.

Colors in C++?

P: n/a
JJK
How can i set the colors in a 16 bit (DOS) program?
Jul 19 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
JJK <jj************************@hotmail.com> wrote in message
news:bi0eq8$ptg$1@news...
How can i set the colors in a 16 bit (DOS) program?


http://www.parashift.com/c++-faq-lite/

See section 15.

And while you're at it, read the entire FAQ,
you'll be glad you did. :-)

-Mike

Jul 19 '05 #2

P: n/a
There is no C++ library that supports colour for DOS/Console applications.

Try looking in your Help files for C Library functions for Consoles.

I hope that helps.

David.

"JJK" <jj************************@hotmail.com> wrote in message
news:bi0eq8$ptg$1@news...
How can i set the colors in a 16 bit (DOS) program?

Jul 19 '05 #3

P: n/a
David Loo wrote:
There is no C++ library that supports colour for DOS/Console
applications.

[SNIP]

There is (it is called TurboVision, it is from Borland, "portable" versions
of it exist for Linux/Unix as well IIRC), but there is no Standard library
for it.

--
Attila aka WW
Jul 19 '05 #4

P: n/a
G++???

"PT" <no@spam.to.me> wrote in message
news:pa****************************@spam.to.me...
How can i set the colors in a 16 bit (DOS) program?
I think it depends on the compiler...

I used Borland C++ (version 3.0) and I did the colouring, using conio.h
functions. Unfortunately I don't remember the function names any more (I
use g++ now), but I think they were textcolor and textbgcolor, or

something like that.

Jul 19 '05 #5

P: n/a
Acacia wrote:
G++???


Please don't top-post. If you have a C++ question, ask it. If you have a
g++ question, go to a group that discusses that compiler. Read section 5
of the FAQ for posting guidelines.

http://www.parashift.com/c++-faq-lite/

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

Jul 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.