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
Fields inherited from class org.jline.terminal.impl.AbstractPty
provider, systemStream
-
Constructor Summary
ConstructorDescriptionJansiNativePty
(TerminalProvider provider, SystemStream systemStream, int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name) JansiNativePty
(TerminalProvider provider, SystemStream systemStream, 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
isPosixSystemStream
(SystemStream stream) static String
posixSystemStreamName
(SystemStream systemStream) void
static int
systemStreamWidth
(SystemStream systemStream) 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, getProvider, getSlaveInput, getSystemStream, newDescriptor, 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
getProvider, getSlaveInput, getSystemStream, setAttr
-
Constructor Details
-
JansiNativePty
public JansiNativePty(TerminalProvider provider, SystemStream systemStream, int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name) -
JansiNativePty
public JansiNativePty(TerminalProvider provider, SystemStream systemStream, 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
-
isPosixSystemStream
-
posixSystemStreamName
-
systemStreamWidth
-