- 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 voidclose()static Ptycurrent()protected StringdoGetConfig()protected InputStreamdoGetSlaveInput()protected voiddoSetAttr(Attributes attr)AttributesgetAttr()protected List<String>getFlagsToSet(Attributes attr, Attributes current)InputStreamgetMasterInput()OutputStreamgetMasterOutput()StringgetName()SizegetSize()OutputStreamgetSlaveOutput()voidsetSize(Size size)StringtoString()-
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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getName
public String getName()
-
getMasterInput
public InputStream getMasterInput()
- Specified by:
getMasterInputin interfacePty
-
getMasterOutput
public OutputStream getMasterOutput()
- Specified by:
getMasterOutputin interfacePty
-
doGetSlaveInput
protected InputStream doGetSlaveInput() throws IOException
- Specified by:
doGetSlaveInputin classAbstractPty- Throws:
IOException
-
getSlaveOutput
public OutputStream getSlaveOutput() throws IOException
- Specified by:
getSlaveOutputin interfacePty- Throws:
IOException
-
getAttr
public Attributes getAttr() throws IOException
- Specified by:
getAttrin interfacePty- Throws:
IOException
-
doSetAttr
protected void doSetAttr(Attributes attr) throws IOException
- Specified by:
doSetAttrin classAbstractPty- Throws:
IOException
-
getFlagsToSet
protected List<String> getFlagsToSet(Attributes attr, Attributes current)
-
getSize
public Size getSize() throws IOException
- Specified by:
getSizein interfacePty- Throws:
IOException
-
doGetConfig
protected String doGetConfig() throws IOException
- Throws:
IOException
-
setSize
public void setSize(Size size) throws IOException
- Specified by:
setSizein interfacePty- Throws:
IOException
-
-