This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hello, I want to extend functionality of Java Console. Say want to highlight(color) some words etc.
Is it possible???
As per my knowledge, it is not, because it is suppose to be platform independent. And not all platform provides this functionality (or something like that), but say i want to extend only console in windows (as of now)
How to do??
Before software can be reusable, it first has to be usable. - Ralph Johnson
In a completely platform independent way? No. But you can print ANSI escape codes to print colored text and do some cursor movement on Windows, Linux, and Mac OS X, so for all practical purposes yes, you can.
See here for a table of the escape codes you need. For a Java example: this prints "Hello, World" in red: