Class FreeBsdNativePty
java.lang.Object
org.jline.terminal.impl.AbstractPty
org.jline.terminal.impl.jna.JnaNativePty
org.jline.terminal.impl.jna.freebsd.FreeBsdNativePty
- All Implemented Interfaces:
Closeable,AutoCloseable,Pty
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFreeBsdNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name) FreeBsdNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name) -
Method Summary
Modifier and TypeMethodDescriptionstatic FreeBsdNativePtycurrent(TerminalProvider.Stream consoleStream) protected voiddoSetAttr(Attributes attr) getAttr()getSize()static intisatty(int fd) static FreeBsdNativePtyopen(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
-
FreeBsdNativePty
public FreeBsdNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name) -
FreeBsdNativePty
public FreeBsdNativePty(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
-