Thread: how to make a colored text in devCpp? help

  1. #1
    Registered User mikko93's Avatar
    Join Date
    Sep 2011
    Posts
    4

    Post how to make a colored text in devCpp? help

    i know this

    system("color (color number)")

    but i dont know how to use

    set console text attribute


  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    You have to use an appropriate library. If they have implemented conio.h, you can use it. Otherwise look into the curses library. If you are writing an actual Windows application, they have methods for it too. It all depends on what type of application you are writing, because standard C cares nothing about colors or screens for that matter.


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. colored text
    By raze in forum C++ Programming
    Replies: 13
    Last Post: 07-09-2006, 03:24 AM
  2. Colored Text in C
    By colorC in forum C Programming
    Replies: 4
    Last Post: 02-23-2004, 04:58 AM
  3. Colored text...
    By gcn_zelda in forum Windows Programming
    Replies: 4
    Last Post: 01-01-2004, 07:23 PM
  4. Colored Text
    By Stan100 in forum Game Programming
    Replies: 2
    Last Post: 09-29-2002, 12:28 AM
  5. Colored Text
    By Yoshi in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 11-28-2001, 09:46 AM