Package org.jline.terminal.impl.jni.win
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwriteConsole(char[] text, int len) Writes text to the Windows console.Methods inherited from class org.jline.terminal.impl.AbstractWindowsConsoleWriter
close, flush, write
-
Field Details
-
console
private final long console -
writtenChars
private final int[] writtenChars
-
-
Constructor Details
-
NativeWinConsoleWriter
public NativeWinConsoleWriter(long console)
-
-
Method Details
-
writeConsole
Description copied from class:AbstractWindowsConsoleWriterWrites 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:
writeConsolein classAbstractWindowsConsoleWriter- Parameters:
text- the character array containing the text to writelen- the number of characters to write- Throws:
IOException- if an I/O error occurs
-