Class ExternalTerminal
java.lang.Object
org.aesh.readline.terminal.impl.AbstractTerminal
org.aesh.readline.terminal.impl.LineDisciplineTerminal
org.aesh.readline.terminal.impl.ExternalTerminal
- All Implemented Interfaces:
Closeable, AutoCloseable, org.aesh.terminal.Terminal
- Direct Known Subclasses:
WinExternalTerminal
Console implementation with embedded line disciplined.
This console is well-suited for supporting incoming external
connections, such as from the network (through telnet, ssh,
or any kind of protocol).
The console will start consuming the input in a separate thread
to generate interruption events.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aesh.terminal.Terminal
org.aesh.terminal.Terminal.SignalHandler -
Field Summary
FieldsFields inherited from class LineDisciplineTerminal
attributes, masterOutput, size, slaveInput, slaveInputPipe, slaveOutput -
Constructor Summary
ConstructorsConstructorDescriptionExternalTerminal(String name, String type, InputStream masterInput, OutputStream masterOutput) -
Method Summary
Methods inherited from class LineDisciplineTerminal
closeSlaveInputPipe, getAttributes, getSize, input, output, processInputByte, processInputBytes, processInputBytes, processInputBytes, processOutputByte, raise, setAttributesMethods inherited from class AbstractTerminal
device, echo, echo, echoSignal, getName, getType, handle, handleDefaultSignalMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aesh.terminal.Terminal
getCodePointConsumer
-
Field Details
-
masterInput
-
-
Constructor Details
-
ExternalTerminal
public ExternalTerminal(String name, String type, InputStream masterInput, OutputStream masterOutput) throws IOException - Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classLineDisciplineTerminal- Throws:
IOException
-
pump
public void pump()
-