public class AnsiConsole
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.io.PrintStream |
err |
static java.io.PrintStream |
out |
static java.io.PrintStream |
system_err |
static java.io.PrintStream |
system_out |
Modifier and Type | Method and Description |
---|---|
static java.io.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 java.io.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 java.io.OutputStream |
wrapOutputStream(java.io.OutputStream stream) |
static java.io.OutputStream |
wrapOutputStream(java.io.OutputStream stream,
int fileno) |
public static final java.io.PrintStream system_out
public static final java.io.PrintStream out
public static final java.io.PrintStream system_err
public static final java.io.PrintStream err
public static java.io.OutputStream wrapOutputStream(java.io.OutputStream stream)
public static java.io.OutputStream wrapOutputStream(java.io.OutputStream stream, int fileno)
public static java.io.PrintStream out()
public static java.io.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-2016 FuseSource, Corp.. All Rights Reserved.