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 -
Field Summary
Fields -
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 LinuxNativePty
current
(TerminalProvider.Stream consoleStream) protected void
doSetAttr
(Attributes attr) getAttr()
getSize()
static int
isatty
(int fd) static LinuxNativePty
open
(Attributes attr, Size size) void
static String
ttyname
(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, toString
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
-
Field Details
-
C_LIBRARY
-
-
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:
doSetAttr
in classAbstractPty
- Throws:
IOException
-
getSize
- Throws:
IOException
-
setSize
- Throws:
IOException
-
isatty
public static int isatty(int fd) -
ttyname
-