How to Get Java to Display Colored Text (8)

1 Name: #!/usr/bin/anonymous : 2009-02-02 04:44 ID:0O1i2uqQ

Hey, everyone. I'm working on a very basic Java project, and I'm wondering how to get the basic Java SystemOutputline command to display a line of text in different colors. Can someone show me an example of what a simple line would look like? Thanks!

2 Name: #!/usr/bin/anonymous : 2009-02-02 18:56 ID:FyEukuN6

System.out.println("\x1b[0;34;45mYour \x1b[0;32;46mmom\x1b[0m");

3 Name: #!/usr/bin/anonymous : 2009-02-03 00:07 ID:0O1i2uqQ

Hehe, sorry, but for some reason I just keep getting "Illegal Escape Character" when I put it in.

4 Name: Null Pointer Exception : 2009-02-03 17:27 ID:T8UbP7qN

if ( object != null) {
object.method();
}

5 Name: #!/usr/bin/anonymous : 2009-02-04 00:13 ID:Heaven

How the hell does Java have any concept of "null" in the first place if it doesn't have pointers? This always bothered me.

6 Name: #!/usr/bin/anonymous : 2009-02-04 06:24 ID:OznudKg7

7 Name: #!/usr/bin/anonymous : 2009-02-06 11:28 ID:Heaven

>>6
GA!

8 Name: #!/usr/bin/anonymous : 2009-02-23 19:09 ID:q5wMH1GO

Have you tried ncurses?

This thread has been closed. You cannot post in this thread any longer.