Text Colors and Locations

This is a discussion on Text Colors and Locations within the C Programming forums, part of the General Programming Boards category; How can I change the color of text in a console application? Or give a location for it to be ...

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    2

    Text Colors and Locations

    How can I change the color of text in a console application? Or give a location for it to be printed?

    for example if I wanted to print "Hello World!" in red centered on the sixth line.

  2. #2
    Registered User
    Join Date
    Dec 2003
    Posts
    24
    Which platform are you using, MS-Windows or Linux.

    In Linux, You have to use CURSES Library

    In MS-Windows, varies from compiler to compiler.

    So tell about the platform you are using.

  3. #3
    Registered User
    Join Date
    Dec 2003
    Posts
    2
    I'm sorry... I'm using Windows with the Visual C++ 6.0 compiler. However I am writing console applications rather than windows applications

  4. #4
    ~viaxd() viaxd's Avatar
    Join Date
    Aug 2003
    Posts
    246
    FAQ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Randomly generating colors from an array.
    By AlmightyDerek in forum C# Programming
    Replies: 1
    Last Post: 05-27-2008, 11:56 PM

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