public class ExternalTerminal extends LineDisciplineTerminal
LineDisciplineTerminalTerminal.MouseTracking, Terminal.Signal, Terminal.SignalHandler| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
closed |
protected InputStream |
masterInput |
protected Thread |
pumpThread |
attributes, masterOutput, size, slaveInput, slaveInputPipe, slaveOutput, slaveReader, slaveWriter| Constructor and Description |
|---|
ExternalTerminal(String name,
String type,
InputStream masterInput,
OutputStream masterOutput,
String encoding) |
ExternalTerminal(String name,
String type,
InputStream masterInput,
OutputStream masterOutput,
String encoding,
Terminal.SignalHandler signalHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Cursor |
getCursorPosition(IntConsumer discarded)
Query the terminal to report the cursor position.
|
void |
pump() |
getAttributes, getSize, input, output, processInputByte, processOutputByte, raise, reader, setAttributes, setSize, writerecho, echo, echoSignal, enterRawMode, flush, getBooleanCapability, getKind, getName, getNumericCapability, getStringCapability, getType, handle, hasMouseSupport, parseInfoCmp, puts, readMouseEvent, readMouseEvent, trackMouseprotected final AtomicBoolean closed
protected final Thread pumpThread
protected final InputStream masterInput
public ExternalTerminal(String name, String type, InputStream masterInput, OutputStream masterOutput, String encoding) throws IOException
IOExceptionpublic ExternalTerminal(String name, String type, InputStream masterInput, OutputStream masterOutput, String encoding, Terminal.SignalHandler signalHandler) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class LineDisciplineTerminalIOExceptionpublic void pump()
public 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.