Change Text Color recursively

This is a discussion on Change Text Color recursively within the C++ Programming forums, part of the General Programming Boards category; Hello, I am in a process of making an adventure text-based game and I was wondering if it's possible to ...

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    1

    Change Text Color recursively

    Hello,

    I am in a process of making an adventure text-based game and I was wondering if it's possible to change the text color on the go. What I mean is that normally, your text would be white, but when you advance in the story (e.g. advance on lines), the old lines would get grey color.

    Is it even possible to change the color of the lines already printed in console?

    Thanks for any help.

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,620
    The only way for this to happen if for you to save each of your outputs somewhere, maybe a vector of strings, and you will start printing them from grey all the way up to white.

    I don't know if it possible to change the color of already printed text, but i don't think so.
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need Help in Compiling errors
    By sick in forum C Programming
    Replies: 2
    Last Post: 01-21-2010, 02:26 AM
  2. change color text?
    By k4z1nh0 in forum C Programming
    Replies: 4
    Last Post: 03-15-2005, 10:41 AM
  3. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 03:49 PM
  4. change text
    By Unregistered in forum C Programming
    Replies: 17
    Last Post: 08-23-2002, 08:28 PM
  5. Replies: 2
    Last Post: 09-04-2001, 02:12 PM

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