Thread: changing text color

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    6

    changing text color

    Hey ive been searching on the net on how to change text color but only come up with bitmaps, graphics like shapes. Can somebody please help thanx in advance

  2. #2
    Registered User unixOZ's Avatar
    Join Date
    Feb 2002
    Posts
    91
    For MS-DOS you have to do something like:

    #include <conio.h>
    void some_function([parameters]) {

    /* some code */
    textcolor(BLUE);
    cprintf("hello\n");
    }


    For Linux:

    char yellow[11]="\033[1;33m";
    /* etc */

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Changing static control text color
    By maxorator in forum Windows Programming
    Replies: 6
    Last Post: 11-03-2005, 10:03 AM
  2. glut text rendering in wrong color
    By ichijoji in forum Game Programming
    Replies: 1
    Last Post: 10-31-2005, 10:02 PM
  3. Changing color of the text in TListBox (BCPPB 5.0)
    By MiraX33 in forum C++ Programming
    Replies: 0
    Last Post: 08-20-2005, 02:57 AM
  4. Text Color
    By I Like Red in forum C++ Programming
    Replies: 2
    Last Post: 12-01-2002, 05:33 PM