public abstract class JansiNativePty extends Object implements Pty
| Constructor and Description |
|---|
JansiNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Attributes |
getAttr() |
int |
getMaster() |
FileDescriptor |
getMasterFD() |
InputStream |
getMasterInput() |
OutputStream |
getMasterOutput() |
String |
getName() |
Size |
getSize() |
int |
getSlave() |
FileDescriptor |
getSlaveFD() |
InputStream |
getSlaveInput() |
OutputStream |
getSlaveOutput() |
protected static FileDescriptor |
newDescriptor(int fd) |
void |
setAttr(Attributes attr) |
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() |
public JansiNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
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 String getName()
public FileDescriptor getMasterFD()
public FileDescriptor getSlaveFD()
public InputStream getMasterInput()
getMasterInput in interface Ptypublic OutputStream getMasterOutput()
getMasterOutput in interface Ptypublic InputStream getSlaveInput()
getSlaveInput in interface Ptypublic OutputStream getSlaveOutput()
getSlaveOutput in interface Ptypublic Attributes getAttr() throws IOException
getAttr in interface PtyIOExceptionpublic void setAttr(Attributes attr) throws IOException
setAttr in interface PtyIOExceptionpublic 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 © 2017. All rights reserved.