Adding colours to text and characters in C

This is a discussion on Adding colours to text and characters in C within the C Programming forums, part of the General Programming Boards category; Please tell me how can i add colour to text and characters in C. For example i want the following ...

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    12

    Question Adding colours to text and characters in C

    Please tell me how can i add colour to text and characters in C.

    For example i want the following characters to appear blue. How would i do that??
    #############################################

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,834
    Without you telling us which OS/Compiler you're using, or whether this is a console or GUI program, any answer would be wild guesswork.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    12
    Quote Originally Posted by Salem View Post
    Without you telling us which OS/Compiler you're using, or whether this is a console or GUI program, any answer would be wild guesswork.
    I am using Visual Studio 2010 and windows 7.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,834
    I'll take a stab at guessing you want to do something with consoles.
    Win32 Console Applications 4
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. storing characters read from text file in 2 different string
    By rcplguy15 in forum C++ Programming
    Replies: 2
    Last Post: 09-25-2010, 05:25 AM
  2. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 01:23 AM
  3. Counting the characters from each word from a text file
    By flipguy_ph in forum C Programming
    Replies: 6
    Last Post: 04-27-2009, 06:56 PM
  4. Replies: 3
    Last Post: 05-25-2005, 02:50 PM
  5. mygets
    By Dave_Sinkula in forum C Programming
    Replies: 6
    Last Post: 03-23-2003, 07:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21