Class NativeWinSysTerminal
java.lang.Object
org.jline.terminal.impl.AbstractTerminal
org.jline.terminal.impl.AbstractWindowsTerminal<MemorySegment>
org.jline.terminal.impl.ffm.NativeWinSysTerminal
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, TerminalExt, Terminal
-
Nested Class Summary
Nested classes/interfaces inherited from interface Terminal
Terminal.MouseTracking, Terminal.Signal, Terminal.SignalHandler -
Field Summary
Fields inherited from class AbstractWindowsTerminal
ANSI_COLORS, attributes, BACKGROUND_BLUE, BACKGROUND_GREEN, BACKGROUND_INTENSITY, BACKGROUND_RED, closer, ENABLE_ECHO_INPUT, ENABLE_EXTENDED_FLAGS, ENABLE_INSERT_MODE, ENABLE_LINE_INPUT, ENABLE_MOUSE_INPUT, ENABLE_PROCESSED_INPUT, ENABLE_QUICK_EDIT_MODE, ENABLE_VIRTUAL_TERMINAL_PROCESSING, ENABLE_WINDOW_INPUT, focusTracking, FOREGROUND_BLUE, FOREGROUND_GREEN, FOREGROUND_INTENSITY, FOREGROUND_RED, inConsole, input, lock, nativeHandlers, originalInConsoleMode, originalOutConsoleMode, outConsole, output, paused, pump, reader, skipNextLf, slaveInputPipe, tracking, TYPE_WINDOWS, TYPE_WINDOWS_256_COLOR, TYPE_WINDOWS_CONEMU, TYPE_WINDOWS_VTP, writerFields inherited from class AbstractTerminal
bools, currentMouseTracking, encoding, handlers, inputEncoding, ints, name, onClose, outputEncoding, palette, status, strings, typeFields inherited from interface Terminal
TYPE_DUMB, TYPE_DUMB_COLOR -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeWinSysTerminalcreateTerminal(TerminalProvider provider, SystemStream systemStream, String name, String type, boolean ansiPassThrough, Charset encoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) static NativeWinSysTerminalcreateTerminal(TerminalProvider provider, SystemStream systemStream, String name, String type, boolean ansiPassThrough, Charset encoding, Charset inputEncoding, Charset outputEncoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) protected intgetConsoleMode(MemorySegment console) getCursorPosition(IntConsumer discarded) intintgetSize()static booleanisWindowsSystemStream(SystemStream stream) protected booleanprotected voidsetConsoleMode(MemorySegment console, int mode) Methods inherited from class AbstractWindowsTerminal
canPauseResume, convertAttributeToRgb, 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 AbstractTerminal
checkInterrupted, close, echo, echo, echoSignal, encoding, enterRawMode, flush, getBooleanCapability, getCurrentMouseTracking, getKind, getName, getNumericCapability, getPalette, getStatus, getStatus, getStringCapability, getType, hasMouseSupport, inputEncoding, outputEncoding, parseInfoCmp, puts, raise, readMouseEvent, readMouseEvent, readMouseEvent, readMouseEvent, setOnClose, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Terminal
getHeight, getWidth, stderrEncoding, stdinEncoding, stdoutEncoding
-
Method Details
-
createTerminal
public static NativeWinSysTerminal createTerminal(TerminalProvider provider, SystemStream systemStream, String name, String type, boolean ansiPassThrough, Charset encoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) throws IOException - Throws:
IOException
-
createTerminal
public static NativeWinSysTerminal createTerminal(TerminalProvider provider, SystemStream systemStream, String name, String type, boolean ansiPassThrough, Charset encoding, Charset inputEncoding, Charset outputEncoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) throws IOException - Throws:
IOException
-
isWindowsSystemStream
-
getConsoleMode
- Specified by:
getConsoleModein classAbstractWindowsTerminal<MemorySegment>
-
setConsoleMode
- Specified by:
setConsoleModein classAbstractWindowsTerminal<MemorySegment>
-
getSize
-
getBufferSize
-
processConsoleInput
- Specified by:
processConsoleInputin classAbstractWindowsTerminal<MemorySegment>- Throws:
IOException
-
getCursorPosition
- Specified by:
getCursorPositionin interfaceTerminal- Overrides:
getCursorPositionin classAbstractTerminal
-
getDefaultForegroundColor
public int getDefaultForegroundColor()- Specified by:
getDefaultForegroundColorin interfaceTerminal- Specified by:
getDefaultForegroundColorin classAbstractWindowsTerminal<MemorySegment>
-
getDefaultBackgroundColor
public int getDefaultBackgroundColor()- Specified by:
getDefaultBackgroundColorin interfaceTerminal- Specified by:
getDefaultBackgroundColorin classAbstractWindowsTerminal<MemorySegment>
-