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,org.jline.terminal.spi.Pty
-
Constructor Summary
ConstructorsConstructorDescriptionLinuxNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name) LinuxNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name) -
Method Summary
Modifier and TypeMethodDescriptionstatic LinuxNativePtycurrent(org.jline.terminal.spi.TerminalProvider.Stream consoleStream) static LinuxNativePtyopen(org.jline.terminal.Attributes attr, org.jline.terminal.Size size) protected org.jline.terminal.AttributestoAttributes(org.fusesource.jansi.internal.CLibrary.Termios tio) protected org.fusesource.jansi.internal.CLibrary.TermiostoTermios(org.jline.terminal.Attributes t) 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, toString, ttynameMethods inherited from class org.jline.terminal.impl.AbstractPty
checkInterrupted, getSlaveInput, newDescriptor, setAttrMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jline.terminal.spi.Pty
getSlaveInput, setAttr
-
Constructor Details
-
LinuxNativePty
public LinuxNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name) -
LinuxNativePty
public LinuxNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name)
-
-
Method Details
-
current
public static LinuxNativePty current(org.jline.terminal.spi.TerminalProvider.Stream consoleStream) throws IOException - Throws:
IOException
-
open
public static LinuxNativePty open(org.jline.terminal.Attributes attr, org.jline.terminal.Size size) throws IOException - Throws:
IOException
-
toTermios
protected org.fusesource.jansi.internal.CLibrary.Termios toTermios(org.jline.terminal.Attributes t) - Specified by:
toTermiosin classJansiNativePty
-
toAttributes
protected org.jline.terminal.Attributes toAttributes(org.fusesource.jansi.internal.CLibrary.Termios tio) - Specified by:
toAttributesin classJansiNativePty
-