Package org.jline.terminal.impl.jansi
Class JansiNativePty
java.lang.Object
org.jline.terminal.impl.AbstractPty
org.jline.terminal.impl.jansi.JansiNativePty
- All Implemented Interfaces:
Closeable,AutoCloseable,Pty
- Direct Known Subclasses:
FreeBsdNativePty,LinuxNativePty,OsXNativePty,SolarisNativePty
-
Constructor Summary
ConstructorsConstructorDescriptionJansiNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name) JansiNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected InputStreamprotected voiddoSetAttr(Attributes attr) getAttr()intgetName()getSize()intgetSlave()intstatic booleanprotected static FileDescriptornewDescriptor(int fd) static Stringvoidprotected abstract AttributestoAttributes(org.fusesource.jansi.internal.CLibrary.Termios tios) toString()protected abstract org.fusesource.jansi.internal.CLibrary.Termiosprotected static Stringttyname()Methods 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
-
JansiNativePty
public JansiNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name) -
JansiNativePty
public JansiNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name)
-
-
Method Details
-
ttyname
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getMaster
public int getMaster() -
getSlave
public int getSlave() -
getSlaveOut
public int getSlaveOut() -
getName
-
getMasterFD
-
getSlaveFD
-
getSlaveOutFD
-
getMasterInput
- Specified by:
getMasterInputin interfacePty
-
getMasterOutput
- Specified by:
getMasterOutputin interfacePty
-
doGetSlaveInput
- Specified by:
doGetSlaveInputin classAbstractPty
-
getSlaveOutput
- Specified by:
getSlaveOutputin interfacePty
-
getAttr
- Specified by:
getAttrin interfacePty- Throws:
IOException
-
doSetAttr
- Specified by:
doSetAttrin classAbstractPty- Throws:
IOException
-
getSize
- Specified by:
getSizein interfacePty- Throws:
IOException
-
setSize
- Specified by:
setSizein interfacePty- Throws:
IOException
-
toTermios
-
toAttributes
-
toString
-
newDescriptor
-
isPosixSystemStream
-
posixSystemStreamName
-