Re: formatted printing of text- color




"babo" <moron68@xxxxxxxxxxx> wrote in message
news:1133303338.159155.299140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I don't know how to use println with diferent color of text from
> default and to print ascii of card signes, like hearts, spike, etc...
>
>
> like: System.out.println("This text is RED, and this is BLUE")
>
>
> Thnx

Colors are terminal specific (and thus OS specific (and thus probably
you won't find direct support for that within Java)). Try looking up ANSI as
a starting point.

For the card suits and things like that, you can probably find
appropriate symbols in Unicode, which Java fully supports.

- Oliver


.



Relevant Pages