Results 1 to 2 of 2

Thread: [JAVA] Console Application - Multiple Colors in One Line

  1. #1
    Join Date
    Oct 2010
    Beans
    9

    Question [JAVA] Console Application - Multiple Colors in One Line

    Hey, I was just wondering how to use multiple colors in one line in Java. I know it's possible, but I've had no luck finding it on Google.

    To be more specific, I want it to look something like this...

    (I couldn't think of a better example, so I just used a screenshot from one of my favorite MUDs. )


    Thanks,
    -Andrew

  2. #2
    Join Date
    Apr 2008
    Beans
    507

    Re: [JAVA] Console Application - Multiple Colors in One Line

    Pretty sure there is no native support in Java. For this requirement one gerenally uses ncurses via JNI.

    Look here http://sourceforge.net/projects/javacurses/
    and here http://roguebasin.roguelikedevelopme...Implementation

    However, you could do it all in Swing and fake a terminal with a JFrame etc.
    Go you good thing!

Tags for this Thread

Bookmarks

Posting Permissions

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