Package org.jline.terminal.impl.ffm
Class NativeWinSysTerminal
java.lang.Object
org.jline.terminal.impl.AbstractTerminal
org.jline.terminal.impl.AbstractWindowsTerminal<MemorySegmentPREVIEW>
org.jline.terminal.impl.ffm.NativeWinSysTerminal
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,TerminalExt,Terminal
NativeWinSysTerminal relies on preview features of the Java platform:
NativeWinSysTerminalrefers to one or more preview APIs:MemorySegment.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jline.terminal.Terminal
Terminal.MouseTracking, Terminal.Signal, Terminal.SignalHandler -
Field Summary
Fields inherited from class org.jline.terminal.impl.AbstractWindowsTerminal
attributes, closer, ENABLE_ECHO_INPUT, ENABLE_INSERT_MODE, ENABLE_LINE_INPUT, ENABLE_MOUSE_INPUT, ENABLE_PROCESSED_INPUT, ENABLE_QUICK_EDIT_MODE, ENABLE_VIRTUAL_TERMINAL_PROCESSING, ENABLE_WINDOW_INPUT, focusTracking, inConsole, input, lock, nativeHandlers, originalInConsoleMode, originalOutConsoleMode, outConsole, output, paused, pump, reader, slaveInputPipe, tracking, TYPE_WINDOWS, TYPE_WINDOWS_256_COLOR, TYPE_WINDOWS_CONEMU, TYPE_WINDOWS_VTP, writerFields inherited from class org.jline.terminal.impl.AbstractTerminal
bools, encoding, handlers, ints, name, onClose, palette, status, strings, typeFields inherited from interface org.jline.terminal.Terminal
TYPE_DUMB, TYPE_DUMB_COLOR -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeWinSysTerminalPREVIEWcreateTerminal(TerminalProvider provider, SystemStream systemStream, String name, String type, boolean ansiPassThrough, Charset encoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) protected intgetConsoleMode(MemorySegmentPREVIEW console) getCursorPosition(IntConsumer discarded) getSize()static booleanisWindowsSystemStream(SystemStream stream) protected booleanprotected voidsetConsoleMode(MemorySegmentPREVIEW console, int mode) Methods inherited from class org.jline.terminal.impl.AbstractWindowsTerminal
canPauseResume, ctrl, doClose, getAttributes, getEscapeSequence, getProvider, getRawSequence, getSystemStream, handle, hasFocusSupport, input, output, pause, pause, paused, processInputChar, processKeyEvent, pump, reader, resume, setAttributes, setSize, trackFocus, trackMouse, updateConsoleMode, writerMethods inherited from class org.jline.terminal.impl.AbstractTerminal
checkInterrupted, close, echo, echo, echoSignal, encoding, enterRawMode, flush, getBooleanCapability, getKind, getName, getNumericCapability, getPalette, getStatus, getStatus, getStringCapability, getType, hasMouseSupport, parseInfoCmp, puts, raise, readMouseEvent, readMouseEvent, setOnClose
-
Method Details
-
createTerminal
public static NativeWinSysTerminalPREVIEW createTerminal(TerminalProvider provider, SystemStream systemStream, String name, String type, boolean ansiPassThrough, Charset encoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) throws IOException - Throws:
IOException
-
isWindowsSystemStream
-
getConsoleMode
- Specified by:
getConsoleModein classAbstractWindowsTerminal<MemorySegmentPREVIEW>
-
setConsoleMode
- Specified by:
setConsoleModein classAbstractWindowsTerminal<MemorySegmentPREVIEW>
-
getSize
-
getBufferSize
-
processConsoleInput
- Specified by:
processConsoleInputin classAbstractWindowsTerminal<MemorySegmentPREVIEW>- Throws:
IOException
-
getCursorPosition
- Specified by:
getCursorPositionin interfaceTerminal- Overrides:
getCursorPositionin classAbstractTerminal
-
NativeWinSysTerminalwhen preview features are enabled.