Class LinuxNativePty
java.lang.Object
org.jline.terminal.impl.AbstractPty
org.jline.terminal.impl.jansi.JansiNativePty
org.jline.terminal.impl.jansi.linux.LinuxNativePty
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Pty
-
Field Summary
Fields inherited from class org.jline.terminal.impl.AbstractPty
provider, systemStream
-
Constructor Summary
ConstructorDescriptionLinuxNativePty
(TerminalProvider provider, SystemStream systemStream, int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name) -
Method Summary
Modifier and TypeMethodDescriptionstatic LinuxNativePty
current
(TerminalProvider provider, SystemStream systemStream) static LinuxNativePty
open
(TerminalProvider provider, Attributes attr, Size size) protected Attributes
toAttributes
(org.fusesource.jansi.internal.CLibrary.Termios tio) protected org.fusesource.jansi.internal.CLibrary.Termios
Methods inherited from class org.jline.terminal.impl.jansi.JansiNativePty
close, doGetSlaveInput, doSetAttr, getAttr, getMaster, getMasterFD, getMasterInput, getMasterOutput, getName, getSize, getSlave, getSlaveFD, getSlaveOut, getSlaveOutFD, getSlaveOutput, isPosixSystemStream, posixSystemStreamName, setSize, systemStreamWidth, toString, 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
-
LinuxNativePty
public LinuxNativePty(TerminalProvider provider, SystemStream systemStream, int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name)
-
-
Method Details
-
current
public static LinuxNativePty current(TerminalProvider provider, SystemStream systemStream) throws IOException - Throws:
IOException
-
open
public static LinuxNativePty open(TerminalProvider provider, Attributes attr, Size size) throws IOException - Throws:
IOException
-
toTermios
- Specified by:
toTermios
in classJansiNativePty
-
toAttributes
- Specified by:
toAttributes
in classJansiNativePty
-