Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing the text color on consol c++

Status
Not open for further replies.

DGoulston

Technical User
Jun 17, 2002
21
GB
what is a simple if there is one, bit of code that can change the text color to for example red (a predefined color) e.g. i choose the color not the user.

thanks in advance.
DAL ##########################
# #
# Darren@DGoulston.com #
##########################
 
Hi,

Please take a look at thread116-287080. Among other things, it contains the code to change colors on a console.
Marcel
 
im a novice in C++ and cant work out from that example the bits to take just to change the text color. becuase i tired loads of it but it dont work, and dont want all that xy and scrren color crap!

thanx
Darren ##########################
# #
# Darren@DGoulston.com #
##########################
 
also the example is in C not C++ it would seem! as it has all the printf's and things.. i need it in C++

thanks ##########################
# #
# Darren@DGoulston.com #
##########################
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top