org.fusesource.jansi
Class WindowsAnsiOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.fusesource.jansi.AnsiOutputStream
org.fusesource.jansi.WindowsAnsiOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public final class WindowsAnsiOutputStream
- extends AnsiOutputStream
A Windows ANSI escape processor, uses JNA to access native platform
API's to change the console attributes.
- Since:
- 1.0
Fields inherited from class org.fusesource.jansi.AnsiOutputStream |
ATTRIBUTE_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_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, REST_CODE, WHITE, YELLOW |
Fields inherited from class java.io.FilterOutputStream |
out |
Methods inherited from class java.io.FilterOutputStream |
flush, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowsAnsiOutputStream
public WindowsAnsiOutputStream(java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
processEraseScreen
protected void processEraseScreen(int eraseOption)
throws java.io.IOException
- Overrides:
processEraseScreen
in class AnsiOutputStream
- Throws:
java.io.IOException
processEraseLine
protected void processEraseLine(int eraseOption)
throws java.io.IOException
- Overrides:
processEraseLine
in class AnsiOutputStream
- Throws:
java.io.IOException
processCursorLeft
protected void processCursorLeft(int count)
throws java.io.IOException
- Overrides:
processCursorLeft
in class AnsiOutputStream
- Throws:
java.io.IOException
processCursorRight
protected void processCursorRight(int count)
throws java.io.IOException
- Overrides:
processCursorRight
in class AnsiOutputStream
- Throws:
java.io.IOException
processCursorDown
protected void processCursorDown(int count)
throws java.io.IOException
- Overrides:
processCursorDown
in class AnsiOutputStream
- Throws:
java.io.IOException
processCursorUp
protected void processCursorUp(int count)
throws java.io.IOException
- Overrides:
processCursorUp
in class AnsiOutputStream
- Throws:
java.io.IOException
processCursorTo
protected void processCursorTo(int row,
int col)
throws java.io.IOException
- Overrides:
processCursorTo
in class AnsiOutputStream
- Throws:
java.io.IOException
processCursorToColumn
protected void processCursorToColumn(int x)
throws java.io.IOException
- Overrides:
processCursorToColumn
in class AnsiOutputStream
- Throws:
java.io.IOException
processSetForegroundColor
protected void processSetForegroundColor(int color)
throws java.io.IOException
- Overrides:
processSetForegroundColor
in class AnsiOutputStream
- Throws:
java.io.IOException
processSetBackgroundColor
protected void processSetBackgroundColor(int color)
throws java.io.IOException
- Overrides:
processSetBackgroundColor
in class AnsiOutputStream
- Throws:
java.io.IOException
processAttributeRest
protected void processAttributeRest()
throws java.io.IOException
- Overrides:
processAttributeRest
in class AnsiOutputStream
- Throws:
java.io.IOException
processSetAttribute
protected void processSetAttribute(int attribute)
throws java.io.IOException
- Overrides:
processSetAttribute
in class AnsiOutputStream
- Throws:
java.io.IOException
processSaveCursorPosition
protected void processSaveCursorPosition()
throws java.io.IOException
- Overrides:
processSaveCursorPosition
in class AnsiOutputStream
- Throws:
java.io.IOException
processRestoreCursorPosition
protected void processRestoreCursorPosition()
throws java.io.IOException
- Overrides:
processRestoreCursorPosition
in class AnsiOutputStream
- Throws:
java.io.IOException