Class WindowsAnsiWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- org.jline.utils.AnsiWriter
-
- org.jline.terminal.impl.jansi.win.WindowsAnsiWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
public final class WindowsAnsiWriter extends org.jline.utils.AnsiWriterA Windows ANSI escape processor, that uses JNA to access native platform API's to change the console attributes.- Since:
- 1.0
- Author:
- Hiram Chirino, Joris Kuipers
-
-
Field Summary
-
Fields inherited from class org.jline.utils.AnsiWriter
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_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, WHITE, YELLOW
-
-
Constructor Summary
Constructors Constructor Description WindowsAnsiWriter(java.io.Writer out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidprocessAttributeRest()protected voidprocessChangeWindowTitle(java.lang.String title)protected voidprocessCursorDown(int count)protected voidprocessCursorDownLine(int count)protected voidprocessCursorLeft(int count)protected voidprocessCursorRight(int count)protected voidprocessCursorTo(int row, int col)protected voidprocessCursorToColumn(int x)protected voidprocessCursorUp(int count)protected voidprocessCursorUpLine(int count)protected voidprocessDefaultBackgroundColor()protected voidprocessDefaultTextColor()protected voidprocessDeleteLine(int optionInt)protected voidprocessEraseLine(int eraseOption)protected voidprocessEraseScreen(int eraseOption)protected voidprocessInsertLine(int optionInt)protected voidprocessRestoreCursorPosition()protected voidprocessSaveCursorPosition()protected voidprocessSetAttribute(int attribute)protected voidprocessSetBackgroundColorExt(int paletteIndex)protected voidprocessSetForegroundColorExt(int paletteIndex)-
Methods inherited from class org.jline.utils.AnsiWriter
close, processChangeIconName, processChangeIconNameAndWindowTitle, processCharsetSelect, processScrollDown, processScrollUp, processSetBackgroundColor, processSetBackgroundColor, processSetBackgroundColorExt, processSetForegroundColor, processSetForegroundColor, processSetForegroundColorExt, processUnknownExtension, processUnknownOperatingSystemCommand, write, write, write
-
-
-
-
Method Detail
-
processEraseScreen
protected void processEraseScreen(int eraseOption) throws java.io.IOException- Overrides:
processEraseScreenin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processEraseLine
protected void processEraseLine(int eraseOption) throws java.io.IOException- Overrides:
processEraseLinein classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processCursorUpLine
protected void processCursorUpLine(int count) throws java.io.IOException- Overrides:
processCursorUpLinein classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processCursorDownLine
protected void processCursorDownLine(int count) throws java.io.IOException- Overrides:
processCursorDownLinein classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processCursorLeft
protected void processCursorLeft(int count) throws java.io.IOException- Overrides:
processCursorLeftin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processCursorRight
protected void processCursorRight(int count) throws java.io.IOException- Overrides:
processCursorRightin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processCursorDown
protected void processCursorDown(int count) throws java.io.IOException- Overrides:
processCursorDownin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processCursorUp
protected void processCursorUp(int count) throws java.io.IOException- Overrides:
processCursorUpin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processCursorTo
protected void processCursorTo(int row, int col) throws java.io.IOException- Overrides:
processCursorToin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processCursorToColumn
protected void processCursorToColumn(int x) throws java.io.IOException- Overrides:
processCursorToColumnin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processSetForegroundColorExt
protected void processSetForegroundColorExt(int paletteIndex) throws java.io.IOException- Overrides:
processSetForegroundColorExtin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processSetBackgroundColorExt
protected void processSetBackgroundColorExt(int paletteIndex) throws java.io.IOException- Overrides:
processSetBackgroundColorExtin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processDefaultTextColor
protected void processDefaultTextColor() throws java.io.IOException- Overrides:
processDefaultTextColorin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processDefaultBackgroundColor
protected void processDefaultBackgroundColor() throws java.io.IOException- Overrides:
processDefaultBackgroundColorin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processAttributeRest
protected void processAttributeRest() throws java.io.IOException- Overrides:
processAttributeRestin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processSetAttribute
protected void processSetAttribute(int attribute) throws java.io.IOException- Overrides:
processSetAttributein classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processSaveCursorPosition
protected void processSaveCursorPosition() throws java.io.IOException- Overrides:
processSaveCursorPositionin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processRestoreCursorPosition
protected void processRestoreCursorPosition() throws java.io.IOException- Overrides:
processRestoreCursorPositionin classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processInsertLine
protected void processInsertLine(int optionInt) throws java.io.IOException- Overrides:
processInsertLinein classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processDeleteLine
protected void processDeleteLine(int optionInt) throws java.io.IOException- Overrides:
processDeleteLinein classorg.jline.utils.AnsiWriter- Throws:
java.io.IOException
-
processChangeWindowTitle
protected void processChangeWindowTitle(java.lang.String title)
- Overrides:
processChangeWindowTitlein classorg.jline.utils.AnsiWriter
-
-