Thread: Change Text Color recursively

  1. #1
    Registered User
    Join Date
    Dec 2010

    Change Text Color recursively


    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
    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, 03:26 AM
  2. change color text?
    By k4z1nh0 in forum C Programming
    Replies: 4
    Last Post: 03-15-2005, 11:41 AM
  3. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04: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