public 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_VTP, writerbools, encoding, handlers, ints, name, status, strings, typeTYPE_DUMB, TYPE_DUMB_COLOR| Modifier and Type | Method and Description |
|---|---|
static JnaWinSysTerminal |
createTerminal(String name,
String type,
boolean ansiPassThrough,
Charset encoding,
int codepage,
boolean nativeSignals,
Terminal.SignalHandler signalHandler,
boolean paused) |
protected int |
getConsoleMode() |
protected int |
getConsoleOutputCP() |
Cursor |
getCursorPosition(IntConsumer discarded)
Query the terminal to report the cursor position.
|
Size |
getSize() |
protected boolean |
processConsoleInput()
Read a single input event from the input buffer and process it.
|
protected void |
setConsoleMode(int mode) |
canPauseResume, close, ctrl, getAttributes, getEscapeSequence, getRawSequence, handle, hasFocusSupport, input, output, pause, pause, paused, processInputChar, processKeyEvent, pump, reader, resume, setAttributes, setSize, trackFocus, trackMouse, updateConsoleMode, writercheckInterrupted, echo, echo, echoSignal, encoding, enterRawMode, flush, getBooleanCapability, getKind, getName, getNumericCapability, getStatus, getStatus, getStringCapability, getType, hasMouseSupport, parseInfoCmp, puts, raise, readMouseEvent, readMouseEventpublic 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()
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 © 2018. All rights reserved.