Class NativeWinConsoleWriter

java.lang.Object
java.io.Writer
org.jline.terminal.impl.AbstractWindowsConsoleWriter
org.jline.terminal.impl.jni.win.NativeWinConsoleWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

class NativeWinConsoleWriter extends AbstractWindowsConsoleWriter
  • Field Details

    • console

      private final long console
    • writtenChars

      private final int[] writtenChars
  • Constructor Details

    • NativeWinConsoleWriter

      public NativeWinConsoleWriter(long console)
  • Method Details

    • writeConsole

      protected void writeConsole(char[] text, int len) throws IOException
      Description copied from class: AbstractWindowsConsoleWriter
      Writes text to the Windows console.

      This method must be implemented by concrete subclasses to perform the actual writing to the Windows console using platform-specific mechanisms. The implementation should handle proper encoding and display of characters, including non-ASCII characters and ANSI escape sequences if supported.

      Specified by:
      writeConsole in class AbstractWindowsConsoleWriter
      Parameters:
      text - the character array containing the text to write
      len - the number of characters to write
      Throws:
      IOException - if an I/O error occurs