Package org.jline.terminal.impl.jansi
Class JansiNativePty
java.lang.Object
org.jline.terminal.impl.AbstractPty
org.jline.terminal.impl.jansi.JansiNativePty
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Pty
- Direct Known Subclasses:
FreeBsdNativePty
,LinuxNativePty
,OsXNativePty
,SolarisNativePty
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final FileDescriptor
private final String
private final int
private final FileDescriptor
private final int
private final FileDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionJansiNativePty
(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) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected InputStream
protected void
doSetAttr
(Attributes attr) getAttr()
int
getName()
getSize()
int
getSlave()
int
static boolean
protected static FileDescriptor
newDescriptor
(int fd) static String
void
protected abstract Attributes
toAttributes
(org.fusesource.jansi.internal.CLibrary.Termios tios) toString()
protected abstract org.fusesource.jansi.internal.CLibrary.Termios
protected static String
ttyname()
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
-
Field Details
-
master
private final int master -
slave
private final int slave -
slaveOut
private final int slaveOut -
name
-
masterFD
-
slaveFD
-
slaveOutFD
-
-
Constructor Details
-
JansiNativePty
public JansiNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name) -
JansiNativePty
public JansiNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name)
-
-
Method Details
-
ttyname
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getMaster
public int getMaster() -
getSlave
public int getSlave() -
getSlaveOut
public int getSlaveOut() -
getName
-
getMasterFD
-
getSlaveFD
-
getSlaveOutFD
-
getMasterInput
- Specified by:
getMasterInput
in interfacePty
-
getMasterOutput
- Specified by:
getMasterOutput
in interfacePty
-
doGetSlaveInput
- Specified by:
doGetSlaveInput
in classAbstractPty
-
getSlaveOutput
- Specified by:
getSlaveOutput
in interfacePty
-
getAttr
- Specified by:
getAttr
in interfacePty
- Throws:
IOException
-
doSetAttr
- Specified by:
doSetAttr
in classAbstractPty
- Throws:
IOException
-
getSize
- Specified by:
getSize
in interfacePty
- Throws:
IOException
-
setSize
- Specified by:
setSize
in interfacePty
- Throws:
IOException
-
toTermios
-
toAttributes
-
toString
-
newDescriptor
-
isPosixSystemStream
-
posixSystemStreamName
-