This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

coloredtext

 
kumara swamy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic