- 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
public class OsXNativePty extends JnaNativePty
-
-
Constructor Summary
Constructors Constructor Description OsXNativePty(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OsXNativePtycurrent()protected voiddoSetAttr(Attributes attr)AttributesgetAttr()SizegetSize()static intisatty(int fd)static OsXNativePtyopen(Attributes attr, Size size)voidsetSize(Size size)-
Methods inherited from class org.jline.terminal.impl.jna.JnaNativePty
close, doGetSlaveInput, getMaster, getMasterFD, getMasterInput, getMasterOutput, getName, getSlave, getSlaveFD, getSlaveOut, getSlaveOutFD, getSlaveOutput, isConsoleInput, isConsoleOutput, newDescriptor, 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
-
-
-
-
Constructor Detail
-
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 Detail
-
current
public static OsXNativePty current() throws IOException
- Throws:
IOException
-
open
public static OsXNativePty open(Attributes attr, Size size) throws IOException
- Throws:
IOException
-
getAttr
public Attributes getAttr() throws IOException
- Throws:
IOException
-
doSetAttr
protected void doSetAttr(Attributes attr) throws IOException
- Specified by:
doSetAttrin classAbstractPty- Throws:
IOException
-
getSize
public Size getSize() throws IOException
- Throws:
IOException
-
setSize
public void setSize(Size size) throws IOException
- Throws:
IOException
-
isatty
public static int isatty(int fd)
-
-