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:
Closeable,Flushable,Appendable,AutoCloseable
A 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, YELLOWFields inherited from class java.io.FilterWriter
out -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprocessChangeWindowTitle(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 voidprotected voidprotected voidprocessDeleteLine(int optionInt) protected voidprocessEraseLine(int eraseOption) protected voidprocessEraseScreen(int eraseOption) protected voidprocessInsertLine(int optionInt) protected voidprotected voidprotected 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, writeMethods inherited from class java.io.FilterWriter
flush
-
Constructor Details
-
WindowsAnsiWriter
- Throws:
IOException
-
-
Method Details
-
processEraseScreen
- Overrides:
processEraseScreenin classAnsiWriter- Throws:
IOException
-
processEraseLine
- Overrides:
processEraseLinein classAnsiWriter- Throws:
IOException
-
processCursorUpLine
- Overrides:
processCursorUpLinein classAnsiWriter- Throws:
IOException
-
processCursorDownLine
- Overrides:
processCursorDownLinein classAnsiWriter- Throws:
IOException
-
processCursorLeft
- Overrides:
processCursorLeftin classAnsiWriter- Throws:
IOException
-
processCursorRight
- Overrides:
processCursorRightin classAnsiWriter- Throws:
IOException
-
processCursorDown
- Overrides:
processCursorDownin classAnsiWriter- Throws:
IOException
-
processCursorUp
- Overrides:
processCursorUpin classAnsiWriter- Throws:
IOException
-
processCursorTo
- Overrides:
processCursorToin classAnsiWriter- Throws:
IOException
-
processCursorToColumn
- Overrides:
processCursorToColumnin classAnsiWriter- Throws:
IOException
-
processSetForegroundColorExt
- Overrides:
processSetForegroundColorExtin classAnsiWriter- Throws:
IOException
-
processSetBackgroundColorExt
- Overrides:
processSetBackgroundColorExtin classAnsiWriter- Throws:
IOException
-
processDefaultTextColor
- Overrides:
processDefaultTextColorin classAnsiWriter- Throws:
IOException
-
processDefaultBackgroundColor
- Overrides:
processDefaultBackgroundColorin classAnsiWriter- Throws:
IOException
-
processAttributeRest
- Overrides:
processAttributeRestin classAnsiWriter- Throws:
IOException
-
processSetAttribute
- Overrides:
processSetAttributein classAnsiWriter- Throws:
IOException
-
processSaveCursorPosition
- Overrides:
processSaveCursorPositionin classAnsiWriter- Throws:
IOException
-
processRestoreCursorPosition
- Overrides:
processRestoreCursorPositionin classAnsiWriter- Throws:
IOException
-
processInsertLine
- Overrides:
processInsertLinein classAnsiWriter- Throws:
IOException
-
processDeleteLine
- Overrides:
processDeleteLinein classAnsiWriter- Throws:
IOException
-
processChangeWindowTitle
- Overrides:
processChangeWindowTitlein classAnsiWriter
-