Closeable, Flushable, AutoCloseable, Terminalpublic class JnaWinSysTerminal extends AbstractWindowsTerminal
Terminal.MouseTracking, Terminal.Signal, Terminal.SignalHandlerattributes, 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, input, lock, nativeHandlers, originalConsoleMode, output, paused, pump, reader, slaveInputPipe, tracking, TYPE_WINDOWS, TYPE_WINDOWS_256_COLOR, TYPE_WINDOWS_CONEMU, TYPE_WINDOWS_VTP, writerbools, encoding, handlers, ints, name, onClose, status, strings, typeTYPE_DUMB, TYPE_DUMB_COLOR| Modifier and Type | Method | Description |
|---|---|---|
static JnaWinSysTerminal |
createTerminal(String name,
String type,
boolean ansiPassThrough,
Charset encoding,
int codepage,
boolean nativeSignals,
Terminal.SignalHandler signalHandler,
boolean paused) |
|
Size |
getBufferSize() |
Retrieve the size of the window buffer.
|
protected int |
getConsoleMode() |
|
protected int |
getConsoleOutputCP() |
|
Cursor |
getCursorPosition(IntConsumer discarded) |
Query the terminal to report the cursor position.
|
Size |
getSize() |
Retrieve the size of the visible window
|
protected boolean |
processConsoleInput() |
Read a single input event from the input buffer and process it.
|
protected void |
setConsoleMode(int mode) |
canPauseResume, ctrl, doClose, getAttributes, getEscapeSequence, getRawSequence, handle, hasFocusSupport, input, output, pause, pause, paused, processInputChar, processKeyEvent, pump, reader, resume, setAttributes, setSize, trackFocus, trackMouse, updateConsoleMode, writercheckInterrupted, close, echo, echo, echoSignal, encoding, enterRawMode, flush, getBooleanCapability, getKind, getName, getNumericCapability, getStatus, getStatus, getStringCapability, getType, hasMouseSupport, parseInfoCmp, puts, raise, readMouseEvent, readMouseEvent, setOnClosepublic static JnaWinSysTerminal createTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) throws IOException
IOExceptionprotected int getConsoleOutputCP()
getConsoleOutputCP in class AbstractWindowsTerminalprotected int getConsoleMode()
getConsoleMode in class AbstractWindowsTerminalprotected void setConsoleMode(int mode)
setConsoleMode in class AbstractWindowsTerminalpublic Size getSize()
TerminalTerminal.getBufferSize()public Size getBufferSize()
TerminalgetBufferSize() method
can be used to avoid wrapping when using the terminal in a line
editing mode, while the Terminal.getSize() method should be
used when using full screen mode.Terminal.getSize()protected boolean processConsoleInput()
throws IOException
AbstractWindowsTerminalprocessConsoleInput in class AbstractWindowsTerminalIOException - if anything wrong happenspublic Cursor getCursorPosition(IntConsumer discarded)
Terminalorg.jline.keymap.BindingReader#runMacro(String)getCursorPosition in interface TerminalgetCursorPosition in class AbstractTerminaldiscarded - a consumer receiving discarded charactersnull if cursor position reporting
is not supported or a valid cursor positionCopyright © 2020. All rights reserved.