Results 1 to 3 of 3
  1. #1
    tenlrt is offline Member
    Join Date
    Nov 2011
    Posts
    1
    Rep Power
    0

    Default Coloured output in command prompt on windows using java

    Hi ,

    An urgent help is required. I need to display colored font in command prompt during execution of a java program on Windows Machine. I am unable to do so and while I searched for online help I came across JANSI library.

    Is there any other better way to print colored output in command prompt on Windows OS using Java ? If yes please respond as soon as possible

    Thanks in advance
    lrt

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Coloured output in command prompt on windows using java

    There are other libraries out there that allow this sort of thing, but their names escape me, but if you really want to have full control of the display of your output, why not just create a Swing GUI program?

    On a side note, please go easy on the "urgent help is required ..." bit. We're all volunteers here and we consider all questions here equally important. My experience here has been that over-use of "urgent" and "as soon as possible" sometimes has the opposite effect intended, and that these types of questions can be slower to get response than other calmer questions. This is your "urgency" not ours, so please do us a favor and try not to make it ours.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Coloured output in command prompt on windows using java

    Also interesting last answer in this StackOverflow thread here: stackoverflow.com: how-to-color-system-out-println-output if you're not afraid to experiment with the JNA library a bit. You will have to download thislibrary first though for this work.

Similar Threads

  1. Replies: 3
    Last Post: 05-03-2011, 03:24 AM
  2. how to make command prompt in java
    By udinulis in forum Java 2D
    Replies: 4
    Last Post: 07-14-2010, 06:52 AM
  3. Command Prompt Java
    By kelvinsmj in forum New To Java
    Replies: 8
    Last Post: 11-27-2009, 10:30 AM
  4. how to run windows command prompt in java parogram ?
    By indikasampath2000 in forum AWT / Swing
    Replies: 4
    Last Post: 12-16-2008, 06:51 AM
  5. Replies: 2
    Last Post: 12-03-2008, 01:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •