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.
The moose likes Java in General and the fly likes blinking or colored output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "blinking or colored output" Watch "blinking or colored output" New topic

blinking or colored output

Prashant Neginahal
Ranch Hand

Joined: Sep 14, 2002
Posts: 77

I dont know whether this is right group for this question.


This will print on the console. I want this display either to be colored or blinking. Is there any way in java(API) to do this?

Thank you very much.


Thanks, <br />Prashant<br />SCJP, SCBCD
Stuart Gray
Ranch Hand

Joined: Apr 21, 2005
Posts: 410
AKAIK, no way in the API.

There are surely some escape codes you could try, or maybe find a Java binding for the 'ncurses' library? That must be able to do what you want.
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

You may want to look at jcurses...
I agree. Here's the link:
subject: blinking or colored output
It's not a secret anymore!