Text Colors

This is a discussion on Text Colors within the C Programming forums, part of the General Programming Boards category; Hi! I know that the WINAPI has macros for the foreground and background colors. But if I enter a number ...

  1. #1
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669

    Text Colors

    Hi!

    I know that the WINAPI has macros for the foreground and background colors. But if I enter a number say 213 then I get a combination of two colors.

    My question is how many different colors can I get in a console mode program?
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  2. #2
    Im back! shaik786's Avatar
    Join Date
    Jun 2002
    Location
    Bangalore, India
    Posts
    345
    >My question is how many different colors can I get in a console mode program?
    In text mode, 16. See the constants defined in conio.h for each color.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 12:23 AM
  2. my text adventure
    By ckeener in forum C++ Programming
    Replies: 2
    Last Post: 06-06-2005, 08:33 AM
  3. Replies: 3
    Last Post: 05-25-2005, 01:50 PM
  4. Constantly updated editable colored text
    By _Elixia_ in forum Windows Programming
    Replies: 2
    Last Post: 06-15-2003, 04:21 PM
  5. Replies: 1
    Last Post: 10-30-2002, 04:45 AM

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