text color

This is a discussion on text color within the C++ Programming forums, part of the General Programming Boards category; how do i change the text color in my program?...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    4

    text color

    how do i change the text color in my program?

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    403

    conio.h

    there are other ways but conio.h is the easiest if you have it

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    2

    Lightbulb Re: Just The Thing

    Originally posted by Dude
    [B]O.k header files conio.h, stdlib.h, stdio.h
    [B]then void main() command
    [B]the type textattr(31);
    [B]and last of all type cprintf("type text here");
    [B]And what that does is prints your text with a blue line behind it

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    2

    Lightbulb Re: Re: Just The Thing

    Originally posted by Dude
    I'll Send You a Example
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    Sep 2001
    Posts
    4
    wtf!!! thanks for the help., but textattr isnt working. says it is an undeclared identifier...

    im using vc 6.0 introductory.... hmm, any ideas?

  6. #6
    Registered User
    Join Date
    Aug 2001
    Posts
    35
    It worked for me with Borland 3.1, well i think you need a DOS 16/32 (i think) bit compiler to make it work. But when it ran, the text was all f****** up!

  7. #7
    Registered User Esss's Avatar
    Join Date
    Aug 2001
    Posts
    133
    Ess
    Like a rat in a maze who says,
    "Watch me choose my own direction"
    Are you under the illusion
    The path is winding your way?
    - Rush

  8. #8
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    search the c++ board for this. I have covered it at least twice since the new board came into existence. This board has tools to make your life a little easier.... one of which is the search facility.If you had used it you would have found your answer straight away.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GUI Text Color Problem
    By justlivelife15 in forum Windows Programming
    Replies: 3
    Last Post: 06-25-2007, 05:47 AM
  2. Change text color in C
    By IndioDoido in forum C Programming
    Replies: 9
    Last Post: 04-15-2007, 05:54 AM
  3. Critique my lighting model.
    By psychopath in forum Game Programming
    Replies: 4
    Last Post: 08-12-2006, 06:23 PM
  4. Color text from windows.h?
    By Saintdog in forum C++ Programming
    Replies: 10
    Last Post: 12-03-2004, 08:20 AM
  5. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 09:45 PM

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