Closeable
, Flushable
, AutoCloseable
, Terminal
public class JansiWinSysTerminal extends AbstractWindowsTerminal
Terminal.MouseTracking, Terminal.Signal, Terminal.SignalHandler
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, input, lock, nativeHandlers, originalConsoleMode, output, paused, pump, reader, slaveInputPipe, tracking, TYPE_WINDOWS, TYPE_WINDOWS_256_COLOR, TYPE_WINDOWS_CONEMU, TYPE_WINDOWS_VTP, writer
bools, encoding, handlers, ints, name, onClose, status, strings, type
TYPE_DUMB, TYPE_DUMB_COLOR
Modifier and Type | Method | Description |
---|---|---|
static JansiWinSysTerminal |
createTerminal(String name,
String type,
boolean ansiPassThrough,
Charset encoding,
int codepage,
boolean nativeSignals,
Terminal.SignalHandler signalHandler,
boolean paused) |
|
void |
disableScrolling() |
|
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, writer
checkInterrupted, close, echo, echo, echoSignal, encoding, enterRawMode, flush, getBooleanCapability, getKind, getName, getNumericCapability, getStatus, getStatus, getStringCapability, getType, hasMouseSupport, parseInfoCmp, puts, raise, readMouseEvent, readMouseEvent, setOnClose
public static JansiWinSysTerminal createTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) throws IOException
IOException
protected int getConsoleOutputCP()
getConsoleOutputCP
in class AbstractWindowsTerminal
protected int getConsoleMode()
getConsoleMode
in class AbstractWindowsTerminal
protected void setConsoleMode(int mode)
setConsoleMode
in class AbstractWindowsTerminal
public Size getSize()
Terminal
Terminal.getBufferSize()
public Size getBufferSize()
Terminal
getBufferSize()
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
AbstractWindowsTerminal
processConsoleInput
in class AbstractWindowsTerminal
IOException
- if anything wrong happenspublic Cursor getCursorPosition(IntConsumer discarded)
Terminal
org.jline.keymap.BindingReader#runMacro(String)
getCursorPosition
in interface Terminal
getCursorPosition
in class AbstractTerminal
discarded
- a consumer receiving discarded charactersnull
if cursor position reporting
is not supported or a valid cursor positionpublic void disableScrolling()
Copyright © 2020. All rights reserved.