Class LinuxNativePty
java.lang.Object
org.jline.terminal.impl.AbstractPty
org.jline.terminal.impl.jna.JnaNativePty
org.jline.terminal.impl.jna.linux.LinuxNativePty
- All Implemented Interfaces:
Closeable,AutoCloseable,Pty
-
Nested Class Summary
Nested Classes -
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(TerminalProvider.Stream consoleStream) protected voiddoSetAttr(Attributes attr) getAttr()getSize()static intisatty(int fd) static LinuxNativePtyopen(Attributes attr, Size size) voidstatic Stringttyname(int slave) Methods inherited from class org.jline.terminal.impl.jna.JnaNativePty
close, doGetSlaveInput, getMaster, getMasterFD, getMasterInput, getMasterOutput, getName, getSlave, getSlaveFD, getSlaveOut, getSlaveOutFD, getSlaveOutput, isPosixSystemStream, newDescriptor, posixSystemStreamName, toStringMethods inherited from class org.jline.terminal.impl.AbstractPty
checkInterrupted, getSlaveInput, 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
- Throws:
IOException
-
open
- Throws:
IOException
-
getAttr
- Throws:
IOException
-
doSetAttr
- Specified by:
doSetAttrin classAbstractPty- Throws:
IOException
-
getSize
- Throws:
IOException
-
setSize
- Throws:
IOException
-
isatty
public static int isatty(int fd) -
ttyname
-