- java.lang.Object
-
- org.jline.terminal.impl.AbstractPty
-
- org.jline.terminal.impl.ExecPty
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Pty
public class ExecPty extends AbstractPty implements Pty
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static Pty
current()
protected String
doGetConfig()
protected InputStream
doGetSlaveInput()
protected void
doSetAttr(Attributes attr)
Attributes
getAttr()
protected List<String>
getFlagsToSet(Attributes attr, Attributes current)
InputStream
getMasterInput()
OutputStream
getMasterOutput()
String
getName()
Size
getSize()
OutputStream
getSlaveOutput()
void
setSize(Size size)
String
toString()
-
Methods inherited from class org.jline.terminal.impl.AbstractPty
checkInterrupted, getSlaveInput, setAttr
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jline.terminal.spi.Pty
getSlaveInput, setAttr
-
-
-
-
Constructor Detail
-
ExecPty
protected ExecPty(String name, boolean system)
-
-
Method Detail
-
current
public static Pty current() throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getName
public String getName()
-
getMasterInput
public InputStream getMasterInput()
- Specified by:
getMasterInput
in interfacePty
-
getMasterOutput
public OutputStream getMasterOutput()
- Specified by:
getMasterOutput
in interfacePty
-
doGetSlaveInput
protected InputStream doGetSlaveInput() throws IOException
- Specified by:
doGetSlaveInput
in classAbstractPty
- Throws:
IOException
-
getSlaveOutput
public OutputStream getSlaveOutput() throws IOException
- Specified by:
getSlaveOutput
in interfacePty
- Throws:
IOException
-
getAttr
public Attributes getAttr() throws IOException
- Specified by:
getAttr
in interfacePty
- Throws:
IOException
-
doSetAttr
protected void doSetAttr(Attributes attr) throws IOException
- Specified by:
doSetAttr
in classAbstractPty
- Throws:
IOException
-
getFlagsToSet
protected List<String> getFlagsToSet(Attributes attr, Attributes current)
-
getSize
public Size getSize() throws IOException
- Specified by:
getSize
in interfacePty
- Throws:
IOException
-
doGetConfig
protected String doGetConfig() throws IOException
- Throws:
IOException
-
setSize
public void setSize(Size size) throws IOException
- Specified by:
setSize
in interfacePty
- Throws:
IOException
-
-