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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Colorizing text for a console

Status
Not open for further replies.

PrograMan

Programmer
Jul 21, 2001
59
US
What would I have to do to colorized some of the text within a console? (It's better to have things colorized than a boring white all the time.)
 
ProGraMan,

In the good old days of DOS, there used to be escape codes enabled by the ANSI.SYS device driver. They were of the format <ESC>[????. Where <ESC> is (char)0x1b of course.

Brudnakm.
 
Sorry, I've never heard of that. Could you expand/clarify that a little bit?
 
Check out the APIs:
-FillConsoleOutputAttribute
-SetConsoleTextAttribute
-WriteConsoleOutputAttribute

Hope this helps, s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top