- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to have text in different colors (for color-coding) and wondering if there is a simple way
to do it using ordinary FORMAT statements. I would rather avoid having to go to a special graphics library,
even though it is pretty easy to get colored text that way.
Is there a library routine for regular console apps that can switch colors, perhaps in the middle of a line?
to do it using ordinary FORMAT statements. I would rather avoid having to go to a special graphics library,
even though it is pretty easy to get colored text that way.
Is there a library routine for regular console apps that can switch colors, perhaps in the middle of a line?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
See the SetConsoleTextAttribute function and other console functions in http://msdn.microsoft.com/en-us/library/ms682073%28v=VS.85%29.aspx
See the SetConsoleTextAttribute function and other console functions in http://msdn.microsoft.com/en-us/library/ms682073%28v=VS.85%29.aspx

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page