Package org.jline.terminal.impl.jna.osx
Class OsXNativePty
java.lang.Object
org.jline.terminal.impl.AbstractPty
org.jline.terminal.impl.jna.JnaNativePty
org.jline.terminal.impl.jna.osx.OsXNativePty
- All Implemented Interfaces:
Closeable,AutoCloseable,Pty
-
Constructor Summary
ConstructorsConstructorDescriptionOsXNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name) OsXNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name) -
Method Summary
Modifier and TypeMethodDescriptionstatic OsXNativePtycurrent(TerminalProvider.Stream consoleStream) protected voiddoSetAttr(Attributes attr) getAttr()getSize()static intisatty(int fd) static OsXNativePtyopen(Attributes attr, Size size) voidstatic Stringttyname(int fd) 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
-
OsXNativePty
public OsXNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name) -
OsXNativePty
public OsXNativePty(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
-