This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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: