Include colors in java console window??

Posted on 2004-11-16
Last Modified: 2012-08-13
Is there any mean to include colors in the java console window???

can anyone help???
Question by:SniperVishal
    1 Comment
    LVL 1

    Accepted Solution

    This is not possible using the regular java classes as this is highly OS and shell dependant. You will probably need to assume the user is using a specific shell and OS to be able to use colours.

    There is a project that looks promising that you could check out:
    You could also implement this yourself, using escape characters for the assumed terminal. But as I said, this could be difficult as the escape character and escape codes differ from shell to shell/terminal.

    Hope this helps!

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now