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

Recommended Answers

All 5 Replies

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

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?

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.