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

public final class WindowsAnsiWriter extends org.jline.utils.AnsiWriter
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
  • Constructor Details

  • Method Details

    • processEraseScreen

      protected void processEraseScreen(int eraseOption) throws IOException
      Overrides:
      processEraseScreen in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processEraseLine

      protected void processEraseLine(int eraseOption) throws IOException
      Overrides:
      processEraseLine in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processCursorUpLine

      protected void processCursorUpLine(int count) throws IOException
      Overrides:
      processCursorUpLine in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processCursorDownLine

      protected void processCursorDownLine(int count) throws IOException
      Overrides:
      processCursorDownLine in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processCursorLeft

      protected void processCursorLeft(int count) throws IOException
      Overrides:
      processCursorLeft in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processCursorRight

      protected void processCursorRight(int count) throws IOException
      Overrides:
      processCursorRight in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processCursorDown

      protected void processCursorDown(int count) throws IOException
      Overrides:
      processCursorDown in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processCursorUp

      protected void processCursorUp(int count) throws IOException
      Overrides:
      processCursorUp in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processCursorTo

      protected void processCursorTo(int row, int col) throws IOException
      Overrides:
      processCursorTo in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processCursorToColumn

      protected void processCursorToColumn(int x) throws IOException
      Overrides:
      processCursorToColumn in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processSetForegroundColorExt

      protected void processSetForegroundColorExt(int paletteIndex) throws IOException
      Overrides:
      processSetForegroundColorExt in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processSetBackgroundColorExt

      protected void processSetBackgroundColorExt(int paletteIndex) throws IOException
      Overrides:
      processSetBackgroundColorExt in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processDefaultTextColor

      protected void processDefaultTextColor() throws IOException
      Overrides:
      processDefaultTextColor in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processDefaultBackgroundColor

      protected void processDefaultBackgroundColor() throws IOException
      Overrides:
      processDefaultBackgroundColor in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processAttributeRest

      protected void processAttributeRest() throws IOException
      Overrides:
      processAttributeRest in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processSetAttribute

      protected void processSetAttribute(int attribute) throws IOException
      Overrides:
      processSetAttribute in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processSaveCursorPosition

      protected void processSaveCursorPosition() throws IOException
      Overrides:
      processSaveCursorPosition in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processRestoreCursorPosition

      protected void processRestoreCursorPosition() throws IOException
      Overrides:
      processRestoreCursorPosition in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processInsertLine

      protected void processInsertLine(int optionInt) throws IOException
      Overrides:
      processInsertLine in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processDeleteLine

      protected void processDeleteLine(int optionInt) throws IOException
      Overrides:
      processDeleteLine in class org.jline.utils.AnsiWriter
      Throws:
      IOException
    • processChangeWindowTitle

      protected void processChangeWindowTitle(String title)
      Overrides:
      processChangeWindowTitle in class org.jline.utils.AnsiWriter