Package org.aesh.terminal.tty.impl
Class AbstractExecPty
java.lang.Object
org.aesh.terminal.tty.impl.AbstractExecPty
- All Implemented Interfaces:
Closeable,AutoCloseable,Pty
Abstract base class for PTY implementations that use external commands
(stty, tty) to interact with the terminal.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aesh.terminal.tty.impl.Pty
getAttr, getSize, getSlaveInput, getSlaveOutput, setAttr
-
Constructor Details
-
AbstractExecPty
-
-
Method Details
-
getName
Returns the name of the TTY device.- Returns:
- the TTY device name
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getMasterInput
Description copied from interface:PtyReturns the master side input stream.- Specified by:
getMasterInputin interfacePty- Returns:
- the master input stream
-
getMasterOutput
Description copied from interface:PtyReturns the master side output stream.- Specified by:
getMasterOutputin interfacePty- Returns:
- the master output stream
-
exec
- Throws:
IOException
-