- 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
public class LinuxNativePty extends JansiNativePty
-
-
Constructor Summary
Constructors Constructor Description LinuxNativePty(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LinuxNativePty
current()
static LinuxNativePty
open(Attributes attr, Size size)
protected Attributes
toAttributes(org.fusesource.jansi.internal.CLibrary.Termios tio)
protected org.fusesource.jansi.internal.CLibrary.Termios
toTermios(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, isConsoleInput, isConsoleOutput, newDescriptor, setSize, toString, 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
-
-
-
-
Constructor Detail
-
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 Detail
-
current
public static LinuxNativePty current() throws IOException
- Throws:
IOException
-
open
public static LinuxNativePty open(Attributes attr, Size size) throws IOException
- Throws:
IOException
-
toTermios
protected org.fusesource.jansi.internal.CLibrary.Termios toTermios(Attributes t)
- Specified by:
toTermios
in classJansiNativePty
-
toAttributes
protected Attributes toAttributes(org.fusesource.jansi.internal.CLibrary.Termios tio)
- Specified by:
toAttributes
in classJansiNativePty
-
-