public abstract class JansiNativePty extends AbstractPty implements Pty
| Constructor and Description |
|---|
JansiNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
int slaveOut,
FileDescriptor slaveOutFD,
String name) |
JansiNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected InputStream |
doGetSlaveInput() |
protected void |
doSetAttr(Attributes attr) |
Attributes |
getAttr() |
int |
getMaster() |
FileDescriptor |
getMasterFD() |
InputStream |
getMasterInput() |
OutputStream |
getMasterOutput() |
String |
getName() |
Size |
getSize() |
int |
getSlave() |
FileDescriptor |
getSlaveFD() |
int |
getSlaveOut() |
FileDescriptor |
getSlaveOutFD() |
OutputStream |
getSlaveOutput() |
protected static FileDescriptor |
newDescriptor(int fd) |
void |
setSize(Size size) |
protected abstract Attributes |
toAttributes(org.fusesource.jansi.internal.CLibrary.Termios tios) |
String |
toString() |
protected abstract org.fusesource.jansi.internal.CLibrary.Termios |
toTermios(Attributes t) |
protected static String |
ttyname() |
checkInterrupted, getSlaveInput, setAttrclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSlaveInput, setAttrpublic JansiNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
String name)
public JansiNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
int slaveOut,
FileDescriptor slaveOutFD,
String name)
protected static String ttyname() throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic int getMaster()
public int getSlave()
public int getSlaveOut()
public String getName()
public FileDescriptor getMasterFD()
public FileDescriptor getSlaveFD()
public FileDescriptor getSlaveOutFD()
public InputStream getMasterInput()
getMasterInput in interface Ptypublic OutputStream getMasterOutput()
getMasterOutput in interface Ptyprotected InputStream doGetSlaveInput()
doGetSlaveInput in class AbstractPtypublic OutputStream getSlaveOutput()
getSlaveOutput in interface Ptypublic Attributes getAttr() throws IOException
getAttr in interface PtyIOExceptionprotected void doSetAttr(Attributes attr) throws IOException
doSetAttr in class AbstractPtyIOExceptionpublic Size getSize() throws IOException
getSize in interface PtyIOExceptionpublic void setSize(Size size) throws IOException
setSize in interface PtyIOExceptionprotected abstract org.fusesource.jansi.internal.CLibrary.Termios toTermios(Attributes t)
protected abstract Attributes toAttributes(org.fusesource.jansi.internal.CLibrary.Termios tios)
protected static FileDescriptor newDescriptor(int fd)
Copyright © 2020. All rights reserved.