The native library used is named jansi and is loaded using HawtJNI Runtime
Library
systemInstall(), out(), err(), for more details on ANSI mode selection
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| public static PrintStream | |
| private static boolean | |
| private static int | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| public static final String | JANSI_COLORS
The default color support that Jansi will use, can be either |
| public static final String | JANSI_COLORS_16
Force the use of 16 colors. |
| public static final String | JANSI_COLORS_256
Force the use of 256 colors. |
| public static final String | JANSI_COLORS_TRUECOLOR
Force the use of 24-bit colors. |
| public static final String | JANSI_EAGER
If the |
| public static final String | JANSI_ERR_COLORS
Jansi colors specific to the standard error stream. |
| public static final String | JANSI_ERR_MODE
Jansi mode specific to the standard error stream. |
| public static final String | JANSI_FORCE
If the |
| public static final String | JANSI_GRACEFUL
If the |
| public static final String | JANSI_MODE
The default mode which Jansi will use, can be either |
| public static final String | JANSI_MODE_DEFAULT
Jansi mode value that output sequences if on a terminal, else strip them. |
| public static final String | JANSI_MODE_FORCE
Jansi mode value to force ansi sequences to the stream even if it's not a terminal. |
| public static final String | JANSI_MODE_STRIP
Jansi mode value to strip all ansi sequences. |
| public static final String | JANSI_NORESET
If the |
| public static final String | JANSI_OUT_COLORS
Jansi colors specific to the standard output stream. |
| public static final String | JANSI_OUT_MODE
Jansi mode specific to the standard output stream. |
| public static final String | JANSI_PASSTHROUGH
If the |
| public static final String | JANSI_STRIP
If the |
| public static PrintStream | |
| pack-priv static int | |
| pack-priv static int | |
| public static PrintStream | system_err
Deprecated
this field will be made private in a future release, use
sysErr() instead
|
| public static PrintStream | system_out
Deprecated
this field will be made private in a future release, use
sysOut() instead
|
| private static int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static AnsiPrintStream | |
| public static AnsiPrintStream | Returns: a PrintStream which is ANSI aware.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. |
| pack-priv static boolean | |
| public static int | |
| pack-priv static synchronized void | |
| public static synchronized boolean | |
| private static AnsiPrintStream | |
| public static AnsiPrintStream | Returns: a PrintStream which is ANSI aware.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. |
| public static PrintStream | Returns: the originial System.err print streamAccess to the original System.err stream before ansi streams were installed. |
| public static PrintStream | Returns: the originial System.out print streamAccess to the original System.out stream before ansi streams were installed. |
| public static synchronized void | |
| public static synchronized void |
| ENABLE_VIRTUAL_TERMINAL_PROCESSING | back to summary |
|---|---|
| pack-priv static final int ENABLE_VIRTUAL_TERMINAL_PROCESSING | |
| err | back to summary |
|---|---|
| public static PrintStream err
Deprecated this field will be made private in a future release, use | |
| initialized | back to summary |
|---|---|
| private static boolean initialized | |
| installed | back to summary |
|---|---|
| private static int installed | |
| IS_CONEMU | back to summary |
|---|---|
| pack-priv static final boolean IS_CONEMU | |
| IS_CYGWIN | back to summary |
|---|---|
| pack-priv static final boolean IS_CYGWIN | |
| IS_MSYSTEM | back to summary |
|---|---|
| pack-priv static final boolean IS_MSYSTEM | |
| IS_WINDOWS | back to summary |
|---|---|
| pack-priv static final boolean IS_WINDOWS | |
| JANSI_COLORS | back to summary |
|---|---|
| public static final String JANSI_COLORS The default color support that Jansi will use, can be either | |
| JANSI_COLORS_16 | back to summary |
|---|---|
| public static final String JANSI_COLORS_16 Force the use of 16 colors. When using a 256-indexed color, or an RGB color, the color will be rounded to the nearest one from the 16 palette. | |
| JANSI_COLORS_256 | back to summary |
|---|---|
| public static final String JANSI_COLORS_256 Force the use of 256 colors. When using an RGB color, the color will be rounded to the nearest one from the standard 256 palette. | |
| JANSI_COLORS_TRUECOLOR | back to summary |
|---|---|
| public static final String JANSI_COLORS_TRUECOLOR Force the use of 24-bit colors. | |
| JANSI_EAGER | back to summary |
|---|---|
| public static final String JANSI_EAGER
Deprecated this property has been added but only for backward compatibility. If the
| |
| JANSI_ERR_COLORS | back to summary |
|---|---|
| public static final String JANSI_ERR_COLORS Jansi colors specific to the standard error stream. | |
| JANSI_ERR_MODE | back to summary |
|---|---|
| public static final String JANSI_ERR_MODE Jansi mode specific to the standard error stream. | |
| JANSI_FORCE | back to summary |
|---|---|
| public static final String JANSI_FORCE
Deprecated use If the | |
| JANSI_GRACEFUL | back to summary |
|---|---|
| public static final String JANSI_GRACEFUL If the | |
| JANSI_MODE | back to summary |
|---|---|
| public static final String JANSI_MODE The default mode which Jansi will use, can be either | |
| JANSI_MODE_DEFAULT | back to summary |
|---|---|
| public static final String JANSI_MODE_DEFAULT Jansi mode value that output sequences if on a terminal, else strip them. | |
| JANSI_MODE_FORCE | back to summary |
|---|---|
| public static final String JANSI_MODE_FORCE Jansi mode value to force ansi sequences to the stream even if it's not a terminal. | |
| JANSI_MODE_STRIP | back to summary |
|---|---|
| public static final String JANSI_MODE_STRIP Jansi mode value to strip all ansi sequences. | |
| JANSI_NORESET | back to summary |
|---|---|
| public static final String JANSI_NORESET If the | |
| JANSI_OUT_COLORS | back to summary |
|---|---|
| public static final String JANSI_OUT_COLORS Jansi colors specific to the standard output stream. | |
| JANSI_OUT_MODE | back to summary |
|---|---|
| public static final String JANSI_OUT_MODE Jansi mode specific to the standard output stream. | |
| JANSI_PASSTHROUGH | back to summary |
|---|---|
| public static final String JANSI_PASSTHROUGH
Deprecated use If the | |
| JANSI_STRIP | back to summary |
|---|---|
| public static final String JANSI_STRIP
Deprecated use If the | |
| out | back to summary |
|---|---|
| public static PrintStream out
Deprecated this field will be made private in a future release, use | |
| STDERR_FILENO | back to summary |
|---|---|
| pack-priv static int STDERR_FILENO | |
| STDOUT_FILENO | back to summary |
|---|---|
| pack-priv static int STDOUT_FILENO | |
| system_err | back to summary |
|---|---|
| public static PrintStream system_err
Deprecated this field will be made private in a future release, use | |
| system_out | back to summary |
|---|---|
| public static PrintStream system_out
Deprecated this field will be made private in a future release, use | |
| virtualProcessing | back to summary |
|---|---|
| private static int virtualProcessing | |
| AnsiConsole | back to summary |
|---|---|
| private AnsiConsole() | |
| ansiStream | back to summary |
|---|---|
| private static AnsiPrintStream ansiStream(boolean stdout) | |
| err | back to summary |
|---|---|
| public static AnsiPrintStream 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.
| |
| getBoolean | back to summary |
|---|---|
| pack-priv static boolean getBoolean(String name) | |
| getTerminalWidth | back to summary |
|---|---|
| public static int getTerminalWidth() Try to find the width of the console for this process. Both output and error streams will be checked to determine the width. A value of 0 is returned if the width can not be determined.
| |
| initStreams | back to summary |
|---|---|
| pack-priv static synchronized void initStreams() Initialize the out/err ansi-enabled streams | |
| isInstalled | back to summary |
|---|---|
| public static synchronized boolean isInstalled() check if the streams have been installed or not | |
| newPrintStream | back to summary |
|---|---|
| private static AnsiPrintStream newPrintStream(AnsiOutputStream out, String enc) | |
| out | back to summary |
|---|---|
| public static AnsiPrintStream 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.
| |
| sysErr | back to summary |
|---|---|
| public static PrintStream sysErr() Access to the original System.err stream before ansi streams were installed.
| |
| sysOut | back to summary |
|---|---|
| public static PrintStream sysOut() Access to the original System.out stream before ansi streams were installed.
| |
| systemInstall | back to summary |
|---|---|
| public static synchronized void systemInstall() Install
| |
| systemUninstall | back to summary |
|---|---|
| public static synchronized void systemUninstall() undo a previous | |