WindowsAnsiPrintStream, which does not suffer from encoding issuespublic final class WindowsAnsiOutputStream extends AnsiOutputStream
WindowsAnsiPrintStreamATTRIBUTE_BLINK_FAST, ATTRIBUTE_BLINK_OFF, ATTRIBUTE_BLINK_SLOW, ATTRIBUTE_CONCEAL_OFF, ATTRIBUTE_CONCEAL_ON, ATTRIBUTE_INTENSITY_BOLD, ATTRIBUTE_INTENSITY_FAINT, ATTRIBUTE_INTENSITY_NORMAL, ATTRIBUTE_ITALIC, ATTRIBUTE_NEGATIVE_Off, ATTRIBUTE_NEGATIVE_OFF, ATTRIBUTE_NEGATIVE_ON, ATTRIBUTE_UNDERLINE, ATTRIBUTE_UNDERLINE_DOUBLE, ATTRIBUTE_UNDERLINE_OFF, BLACK, BLUE, CYAN, ERASE_LINE, ERASE_LINE_TO_BEGINING, ERASE_LINE_TO_END, ERASE_SCREEN, ERASE_SCREEN_TO_BEGINING, ERASE_SCREEN_TO_END, GREEN, MAGENTA, RED, RESET_CODE, REST_CODE, WHITE, YELLOWout| Constructor and Description |
|---|
WindowsAnsiOutputStream(OutputStream os)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
processAttributeRest()
Deprecated.
process
SGR 0 corresponding to Reset / Normal |
protected void |
processChangeWindowTitle(String label)
Deprecated.
process
OSC 2;text BEL corresponding to Change Window title |
protected void |
processCursorDown(int count)
Deprecated.
process
CSI n B corresponding to CUD – Cursor Down |
protected void |
processCursorLeft(int count)
Deprecated.
process
CSI n D corresponding to CUB – Cursor Back |
protected void |
processCursorRight(int count)
Deprecated.
process
CSI n C corresponding to CUF – Cursor Forward |
protected void |
processCursorTo(int row,
int col)
Deprecated.
process
CSI n ; m H corresponding to CUP – Cursor Position or
CSI n ; m f corresponding to HVP – Horizontal and Vertical Position |
protected void |
processCursorToColumn(int x)
Deprecated.
process
CSI n G corresponding to CHA – Cursor Horizontal Absolute |
protected void |
processCursorUp(int count)
Deprecated.
process
CSI n A corresponding to CUU – Cursor Up |
protected void |
processDefaultBackgroundColor()
Deprecated.
process
SGR 49 corresponding to Default background color |
protected void |
processDefaultTextColor()
Deprecated.
process
SGR 39 corresponding to Default text color (foreground) |
protected void |
processDeleteLine(int optionInt)
Deprecated.
Process
CSI M ANSI code, corresponding to DL – Delete Line |
protected void |
processEraseLine(int eraseOption)
Deprecated.
Process
CSI n K ANSI code, corresponding to ED – Erase in Line |
protected void |
processEraseScreen(int eraseOption)
Deprecated.
Process
CSI n J ANSI code, corresponding to ED – Erase in Display |
protected void |
processInsertLine(int optionInt)
Deprecated.
Process
CSI L ANSI code, corresponding to IL – Insert Line |
protected void |
processRestoreCursorPosition()
Deprecated.
Process
CSI u ANSI code, corresponding to RCP – Restore Cursor Position |
protected void |
processSaveCursorPosition()
Deprecated.
Process
CSI s ANSI code, corresponding to SCP – Save Cursor Position |
protected void |
processSetAttribute(int attribute)
Deprecated.
process
SGR other than 0 (reset), 30-39 (foreground),
40-49 (background), 90-97 (foreground high intensity) or
100-107 (background high intensity) |
protected void |
processSetBackgroundColor(int color,
boolean bright)
Deprecated.
process
SGR 40-47 or SGR 100-107 corresponding to
Set background color either in normal mode or high intensity. |
protected void |
processSetForegroundColor(int color,
boolean bright)
Deprecated.
process
SGR 30-37 or SGR 90-97 corresponding to
Set text color (foreground) either in normal mode or high intensity. |
close, processChangeIconName, processChangeIconNameAndWindowTitle, processCharsetSelect, processCursorDownLine, processCursorUpLine, processScrollDown, processScrollUp, processSetBackgroundColor, processSetBackgroundColorExt, processSetBackgroundColorExt, processSetForegroundColor, processSetForegroundColorExt, processSetForegroundColorExt, processUnknownExtension, processUnknownOperatingSystemCommand, writeflush, write, writepublic WindowsAnsiOutputStream(OutputStream os) throws IOException
IOExceptionprotected void processEraseScreen(int eraseOption) throws IOException
AnsiOutputStreamCSI n J ANSI code, corresponding to ED – Erase in DisplayprocessEraseScreen in class AnsiOutputStreameraseOption - eraseOptionIOException - IOExceptionprotected void processEraseLine(int eraseOption) throws IOException
AnsiOutputStreamCSI n K ANSI code, corresponding to ED – Erase in LineprocessEraseLine in class AnsiOutputStreameraseOption - eraseOptionIOException - IOExceptionprotected void processCursorLeft(int count) throws IOException
AnsiOutputStreamCSI n D corresponding to CUB – Cursor BackprocessCursorLeft in class AnsiOutputStreamcount - numer of characters to move leftIOException - IOExceptionprotected void processCursorRight(int count) throws IOException
AnsiOutputStreamCSI n C corresponding to CUF – Cursor ForwardprocessCursorRight in class AnsiOutputStreamcount - number of characters to move onIOException - IOExceptionprotected void processCursorDown(int count) throws IOException
AnsiOutputStreamCSI n B corresponding to CUD – Cursor DownprocessCursorDown in class AnsiOutputStreamcount - numer of lineIOException - IOExceptionprotected void processCursorUp(int count) throws IOException
AnsiOutputStreamCSI n A corresponding to CUU – Cursor UpprocessCursorUp in class AnsiOutputStreamcount - number of linesIOException - IOExceptionprotected void processCursorTo(int row, int col) throws IOException
AnsiOutputStreamCSI n ; m H corresponding to CUP – Cursor Position or
CSI n ; m f corresponding to HVP – Horizontal and Vertical PositionprocessCursorTo in class AnsiOutputStreamrow - rowcol - columnIOException - IOExceptionprotected void processCursorToColumn(int x) throws IOException
AnsiOutputStreamCSI n G corresponding to CHA – Cursor Horizontal AbsoluteprocessCursorToColumn in class AnsiOutputStreamx - the columnIOException - IOExceptionprotected void processSetForegroundColor(int color, boolean bright) throws IOException
AnsiOutputStreamSGR 30-37 or SGR 90-97 corresponding to
Set text color (foreground) either in normal mode or high intensity.processSetForegroundColor in class AnsiOutputStreamcolor - the text colorbright - is high intensity?IOException - IOExceptionprotected void processSetBackgroundColor(int color, boolean bright) throws IOException
AnsiOutputStreamSGR 40-47 or SGR 100-107 corresponding to
Set background color either in normal mode or high intensity.processSetBackgroundColor in class AnsiOutputStreamcolor - the background colorbright - is high intensity?IOException - IOExceptionprotected void processDefaultTextColor() throws IOException
AnsiOutputStreamSGR 39 corresponding to Default text color (foreground)processDefaultTextColor in class AnsiOutputStreamIOException - IOExceptionprotected void processDefaultBackgroundColor() throws IOException
AnsiOutputStreamSGR 49 corresponding to Default background colorprocessDefaultBackgroundColor in class AnsiOutputStreamIOException - IOExceptionprotected void processAttributeRest() throws IOException
AnsiOutputStreamSGR 0 corresponding to Reset / NormalprocessAttributeRest in class AnsiOutputStreamIOException - IOExceptionprotected void processSetAttribute(int attribute) throws IOException
AnsiOutputStreamSGR other than 0 (reset), 30-39 (foreground),
40-49 (background), 90-97 (foreground high intensity) or
100-107 (background high intensity)processSetAttribute in class AnsiOutputStreamattribute - attributeIOException - IOExceptionAnsiOutputStream.processAttributeRest(),
AnsiOutputStream.processSetForegroundColor(int),
AnsiOutputStream.processSetForegroundColor(int, boolean),
AnsiOutputStream.processSetForegroundColorExt(int),
AnsiOutputStream.processSetForegroundColorExt(int, int, int),
AnsiOutputStream.processDefaultTextColor(),
AnsiOutputStream.processDefaultBackgroundColor()protected void processSaveCursorPosition() throws IOException
AnsiOutputStreamCSI s ANSI code, corresponding to SCP – Save Cursor PositionprocessSaveCursorPosition in class AnsiOutputStreamIOException - IOExceptionprotected void processRestoreCursorPosition() throws IOException
AnsiOutputStreamCSI u ANSI code, corresponding to RCP – Restore Cursor PositionprocessRestoreCursorPosition in class AnsiOutputStreamIOException - IOExceptionprotected void processInsertLine(int optionInt) throws IOException
AnsiOutputStreamCSI L ANSI code, corresponding to IL – Insert LineprocessInsertLine in class AnsiOutputStreamoptionInt - optionIOException - IOExceptionprotected void processDeleteLine(int optionInt) throws IOException
AnsiOutputStreamCSI M ANSI code, corresponding to DL – Delete LineprocessDeleteLine in class AnsiOutputStreamoptionInt - optionIOException - IOExceptionprotected void processChangeWindowTitle(String label)
AnsiOutputStreamOSC 2;text BEL corresponding to Change Window titleprocessChangeWindowTitle in class AnsiOutputStreamlabel - window labelCopyright © 2009–2018 FuseSource, Corp.. All rights reserved.