Results 1 to 9 of 9
- 11-19-2010, 09:15 PM #1
- 11-19-2010, 09:46 PM #2
I did a quick google because i dont know the answer, and this forum looked like it might be helpful... post number 6 in particular.
Text color in Windows console
hope this helps!
- 11-19-2010, 10:07 PM #3
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,716
- Rep Power
- 19
But what about the response in #9? I tried this and see the same (unfortunate) thing as the OP of that thread.
I note in passing that #4 and #10 are responses by "names" in the Java online world who I would trust.
- 11-20-2010, 01:13 AM #4
Senior Member
- Join Date
- Feb 2010
- Location
- Waterford, Ireland
- Posts
- 748
- Rep Power
- 12
"freaks out" :D
- 11-20-2010, 09:41 AM #5
I tried the #6 on that forum, but no result.
Maybe it is important to know that I use Mac OS X 10.6.5 and as program I use DrJava.
-
My take on this is if you want multicolored output, then your best bet is to create a GUI app.
- 11-20-2010, 10:55 AM #7
- 11-20-2010, 11:46 AM #8
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
In the old days there were even 'paper consoles'; you can't change the colour of ink; a lot of consoles (terminals) are monochrome and you can't change their colours either. Colour terminals all use different commands or codes to change their colours. There is no standard way to do it. A Java GUI can display different colours in a standard way (as long as it is Java). An alternative is jcurses; it's an attempt to support all those different consoles so that you (the jcurses user) only have to deal with jcurses' way of communicating with any console.
kind regards,
JosBuild a wall around Donald Trump; I'll pay for it.
-
You seem to want a more varied and aesthetically pleasing output for the user, and the avenue you choose to try to do this with, the Java console is not suited for this. Instead you could create a GUI or graphical user interface Java program with the Swing library. If you are unfamiliar with this, you may wish to Google this for more information.
Similar Threads
-
How to format the print statement
By ftrengnr in forum New To JavaReplies: 1Last Post: 09-18-2010, 10:02 PM -
problems with print statement
By soccer_kid_6 in forum New To JavaReplies: 8Last Post: 03-22-2010, 02:24 PM -
One controller with multiple buttons and colors
By Cutter in forum New To JavaReplies: 5Last Post: 01-24-2010, 06:47 PM -
How do I use multiple background colors?
By trbox in forum New To JavaReplies: 1Last Post: 09-02-2008, 01:00 PM -
how to set multiple colors in a JtextArea
By valery in forum AWT / SwingReplies: 2Last Post: 08-01-2007, 05:12 PM
Bookmarks