Anyone knows how to change text colours?
How to change text color
Started by teensicle, Jan 28 2010 07:12 AM
6 replies to this topic
#1
Posted 28 January 2010 - 07:12 AM
|
|
|
#2
Posted 28 January 2010 - 09:40 AM
You can change the text color eathier by batch or graphics.h
#3
Posted 28 January 2010 - 09:50 AM
teensicle said:
Anyone knows how to change text colours?
[SIGPIC][/SIGPIC]
#4
Posted 28 January 2010 - 10:43 AM
i only wanna change the color of one line of text.. to red
so for example
so for example
printf("[COLOR="Red"]PLEASE SELECT THE RIGHT OPTION[/COLOR]")
#5
Posted 28 January 2010 - 10:44 AM
Bartimäus said:
In which language ?
in C....see above for example
#6
Posted 28 January 2010 - 11:08 AM
I'm not a real c programmer but think you can change the color with that
http//:msdn.microsoft.com/en-us/library/ms686047(VS.85).aspx#Mtps_DropDownFilterText
:)
SetConsoleTextAttribute(hConsoleHandle,FOREGROUND_REDIt is from the msdn library
http//:msdn.microsoft.com/en-us/library/ms686047(VS.85).aspx#Mtps_DropDownFilterText
:)
[SIGPIC][/SIGPIC]
#7
Posted 29 January 2010 - 07:04 PM
C doesn't assume there are colors to change. There is no guarantee that printf displays to a color output device.
Also, please don't hijack threads. Create your own like this one.
Also, please don't hijack threads. Create your own like this one.


Sign In
Create Account


Back to top









