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
-
Field Summary
Fields inherited from class org.jline.terminal.impl.AbstractPty
provider, systemStream -
Constructor Summary
ConstructorsConstructorDescriptionJansiNativePty(TerminalProvider provider, SystemStream systemStream, int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name) JansiNativePty(TerminalProvider provider, SystemStream systemStream, 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 booleanisPosixSystemStream(SystemStream stream) static StringposixSystemStreamName(SystemStream systemStream) voidstatic intsystemStreamWidth(SystemStream systemStream) protected 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, getProvider, getSlaveInput, getSystemStream, newDescriptor, 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
getProvider, getSlaveInput, getSystemStream, setAttr
-
Constructor Details
-
JansiNativePty
public JansiNativePty(TerminalProvider provider, SystemStream systemStream, int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name) -
JansiNativePty
public JansiNativePty(TerminalProvider provider, SystemStream systemStream, 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
-
isPosixSystemStream
-
posixSystemStreamName
-
systemStreamWidth
-