1,105,625 Community Members

Change color

Member Avatar
Zssffssz
Junior Poster
180 posts since Sep 2011
Reputation Points: -4 [?]
Q&As Helped to Solve: 3 [?]
Skill Endorsements: 0 [?]
 
0
 

Ok how do I change the texts color without changing all the couts to printfs and without using system("color hex")

Member Avatar
Narue
Bad Cop
12,139 posts since Sep 2004
Reputation Points: 5,693 [?]
Q&As Helped to Solve: 1,537 [?]
Skill Endorsements: 81 [?]
Team Colleague
 
0
 

By 'without using system("color hex")' do you still mean "works on all systems magically"?

Member Avatar
Zssffssz
Junior Poster
180 posts since Sep 2011
Reputation Points: -4 [?]
Q&As Helped to Solve: 3 [?]
Skill Endorsements: 0 [?]
 
0
 

No, I mean can I write a chunk of code for this in a function for something, so yes. Is this why people love java?

Member Avatar
Narue
Bad Cop
12,139 posts since Sep 2004
Reputation Points: 5,693 [?]
Q&As Helped to Solve: 1,537 [?]
Skill Endorsements: 81 [?]
Team Colleague
 
0
 

can I write a chunk of code for this in a function for something, so yes.

You can write a function for it, yes. What you can't do is write a function that magically works on every possible platform. Console text color is inherently non-portable.

Is this why people love java?

Wide portability without losing functionality is one of Java's selling points.

Member Avatar
Zssffssz
Junior Poster
180 posts since Sep 2011
Reputation Points: -4 [?]
Q&As Helped to Solve: 3 [?]
Skill Endorsements: 0 [?]
 
0
 

Ok than like in my other thread; how do you change color on the other two giants OSX and Linux?

Member Avatar
Narue
Bad Cop
12,139 posts since Sep 2004
Reputation Points: 5,693 [?]
Q&As Helped to Solve: 1,537 [?]
Skill Endorsements: 81 [?]
Team Colleague
 
0
 
Question Answered as of 2 Years Ago by Narue
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: