public class AnsiConsole extends Object
Modifier and Type | Field and Description |
---|---|
static PrintStream |
err |
static PrintStream |
out |
static PrintStream |
system_err |
static PrintStream |
system_out |
Constructor and Description |
---|
AnsiConsole() |
Modifier and Type | Method and Description |
---|---|
static PrintStream |
err()
If the standard out natively supports ANSI escape codes, then this just
returns System.err, otherwise it will provide an ANSI aware PrintStream
which strips out the ANSI escape sequences or which implement the escape
sequences.
|
static PrintStream |
out()
If the standard out natively supports ANSI escape codes, then this just
returns System.out, otherwise it will provide an ANSI aware PrintStream
which strips out the ANSI escape sequences or which implement the escape
sequences.
|
static void |
systemInstall()
Install Console.out to System.out.
|
static void |
systemUninstall()
undo a previous
systemInstall() . |
static OutputStream |
wrapOutputStream(OutputStream stream) |
public static final PrintStream system_out
public static final PrintStream out
public static final PrintStream system_err
public static final PrintStream err
public static OutputStream wrapOutputStream(OutputStream stream)
public static PrintStream out()
public static PrintStream err()
public static void systemInstall()
public static void systemUninstall()
systemInstall()
. If systemInstall()
was called
multiple times, it systemUninstall()
must call the same number of times before
it is actually uninstalled.Copyright © 2009-2014 FuseSource, Corp.. All Rights Reserved.