ConsoleHelper helper = new ConsoleHelper(); helper.println("The red text", EscapedColor.RED);
ConsoleHelper helper = new ConsoleHelper(); helper.addText("The "); EscapedText text = helper.addText("Blue text"); text.setForeground(EscapedColor.BLUE); helper.println(); helper.addText("The "); text = helper.addText("Red italic text"); text.setForeground(EscapedColor.RED); text.setItalic(true); helper.println();will show this result on the console:
Copyright 2006-2024 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences
Project Web Hosted by
Copyright 1999-2010 -
Geeknet, Inc., All Rights Reserved
About
-
Legal
-
Help