aspose file tools*
The moose likes Beginning Java and the fly likes coloredtext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "coloredtext" Watch "coloredtext" New topic
Author

coloredtext

kumara swamy
Greenhorn

Joined: Jun 10, 2005
Posts: 1
hi
i want to print colored text on commandprompt using corejava i dont want to use any gui or awt/swings/applet just print colored text dosprompt. is it possible if pls give some hint
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

Hi,

Welcome to JavaRanch!

Please don't post the same question to multiple forums. It just wastes people's time -- and it's like littering! You're new around here, so I'm going to let you off with a warning. I've deleted the four (!) other copies you posted; please don't do it again.

To answer your question: there's no portable way to do this, but if your machine supports ANSI control sequences, you can use those, as described here.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: coloredtext
 
Similar Threads
blinking or colored output
Need help in saving the diff colored text in JTextPane in diff format
Formatting mail text using JavaMail
colored text and images in chat message area
How to set different color for the different text in a JTextArea