Class OsXNativePty
- java.lang.Object
-
- org.jline.terminal.impl.AbstractPty
-
- org.jline.terminal.impl.jansi.JansiNativePty
-
- org.jline.terminal.impl.jansi.osx.OsXNativePty
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Pty
public class OsXNativePty extends JansiNativePty
-
-
Field Summary
Fields Modifier and Type Field Description private static intALTWERASEprivate static intBRKINTprivate static intBSDLYprivate static intCCAR_OFLOWprivate static intCCTS_OFLOWprivate static intCDSR_OFLOWprivate static intCDTR_IFLOWprivate static intCIGNOREprivate static intCLOCALprivate static intCRDLYprivate static intCREADprivate static intCRTS_IFLOWprivate static intCS5private static intCS6private static intCS7private static intCS8private static intCSTOPBprivate static intECHOprivate static intECHOCTLprivate static intECHOEprivate static intECHOKprivate static intECHOKEprivate static intECHONLprivate static intECHOPRTprivate static intEXTPROCprivate static intFFDLYprivate static intFLUSHOprivate static intHUPCLprivate static intICANONprivate static intICRNLprivate static intIEXTENprivate static intIGNBRKprivate static intIGNCRprivate static intIGNPARprivate static intIMAXBELprivate static intINLCRprivate static intINPCKprivate static intISIGprivate static intISTRIPprivate static intIUTF8private static intIXANYprivate static intIXOFFprivate static intIXONprivate static intNLDLYprivate static intNOFLSHprivate static intNOKERNINFOprivate static intOCRNLprivate static intOFDELprivate static intOFILLprivate static intONLCRprivate static intONLRETprivate static intONOCRprivate static intONOEOTprivate static intOPOSTprivate static intOXTABSprivate static intPARENBprivate static intPARMRKprivate static intPARODDprivate static intPENDINprivate static intTABDLYprivate static intTOSTOPprivate static intVDISCARDprivate static intVDSUSPprivate static intVEOFprivate static intVEOLprivate static intVEOL2private static intVERASEprivate static intVINTRprivate static intVKILLprivate static intVLNEXTprivate static intVMINprivate static intVQUITprivate static intVREPRINTprivate static intVSTARTprivate static intVSTATUSprivate static intVSTOPprivate static intVSUSPprivate static intVTDLYprivate static intVTIMEprivate static intVWERASE
-
Constructor Summary
Constructors Constructor Description OsXNativePty(int master, java.io.FileDescriptor masterFD, int slave, java.io.FileDescriptor slaveFD, int slaveOut, java.io.FileDescriptor slaveOutFD, java.lang.String name)OsXNativePty(int master, java.io.FileDescriptor masterFD, int slave, java.io.FileDescriptor slaveFD, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static <T extends java.lang.Enum<T>>
voidaddFlag(long value, java.util.EnumSet<T> flags, T flag, int v)static OsXNativePtycurrent()static OsXNativePtyopen(Attributes attr, Size size)private static longsetFlag(boolean flag, long value, long org)(package private) static org.fusesource.jansi.internal.CLibrary.Termiostermios(Attributes t)protected AttributestoAttributes(org.fusesource.jansi.internal.CLibrary.Termios tio)protected org.fusesource.jansi.internal.CLibrary.TermiostoTermios(Attributes t)-
Methods inherited from class org.jline.terminal.impl.jansi.JansiNativePty
close, doGetSlaveInput, doSetAttr, getAttr, getMaster, getMasterFD, getMasterInput, getMasterOutput, getName, getSize, getSlave, getSlaveFD, getSlaveOut, getSlaveOutFD, getSlaveOutput, isConsoleInput, isConsoleOutput, newDescriptor, setSize, toString, ttyname
-
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
-
-
-
-
Field Detail
-
VEOF
private static final int VEOF
- See Also:
- Constant Field Values
-
VEOL
private static final int VEOL
- See Also:
- Constant Field Values
-
VEOL2
private static final int VEOL2
- See Also:
- Constant Field Values
-
VERASE
private static final int VERASE
- See Also:
- Constant Field Values
-
VWERASE
private static final int VWERASE
- See Also:
- Constant Field Values
-
VKILL
private static final int VKILL
- See Also:
- Constant Field Values
-
VREPRINT
private static final int VREPRINT
- See Also:
- Constant Field Values
-
VINTR
private static final int VINTR
- See Also:
- Constant Field Values
-
VQUIT
private static final int VQUIT
- See Also:
- Constant Field Values
-
VSUSP
private static final int VSUSP
- See Also:
- Constant Field Values
-
VDSUSP
private static final int VDSUSP
- See Also:
- Constant Field Values
-
VSTART
private static final int VSTART
- See Also:
- Constant Field Values
-
VSTOP
private static final int VSTOP
- See Also:
- Constant Field Values
-
VLNEXT
private static final int VLNEXT
- See Also:
- Constant Field Values
-
VDISCARD
private static final int VDISCARD
- See Also:
- Constant Field Values
-
VMIN
private static final int VMIN
- See Also:
- Constant Field Values
-
VTIME
private static final int VTIME
- See Also:
- Constant Field Values
-
VSTATUS
private static final int VSTATUS
- See Also:
- Constant Field Values
-
IGNBRK
private static final int IGNBRK
- See Also:
- Constant Field Values
-
BRKINT
private static final int BRKINT
- See Also:
- Constant Field Values
-
IGNPAR
private static final int IGNPAR
- See Also:
- Constant Field Values
-
PARMRK
private static final int PARMRK
- See Also:
- Constant Field Values
-
INPCK
private static final int INPCK
- See Also:
- Constant Field Values
-
ISTRIP
private static final int ISTRIP
- See Also:
- Constant Field Values
-
INLCR
private static final int INLCR
- See Also:
- Constant Field Values
-
IGNCR
private static final int IGNCR
- See Also:
- Constant Field Values
-
ICRNL
private static final int ICRNL
- See Also:
- Constant Field Values
-
IXON
private static final int IXON
- See Also:
- Constant Field Values
-
IXOFF
private static final int IXOFF
- See Also:
- Constant Field Values
-
IXANY
private static final int IXANY
- See Also:
- Constant Field Values
-
IMAXBEL
private static final int IMAXBEL
- See Also:
- Constant Field Values
-
IUTF8
private static final int IUTF8
- See Also:
- Constant Field Values
-
OPOST
private static final int OPOST
- See Also:
- Constant Field Values
-
ONLCR
private static final int ONLCR
- See Also:
- Constant Field Values
-
OXTABS
private static final int OXTABS
- See Also:
- Constant Field Values
-
ONOEOT
private static final int ONOEOT
- See Also:
- Constant Field Values
-
OCRNL
private static final int OCRNL
- See Also:
- Constant Field Values
-
ONOCR
private static final int ONOCR
- See Also:
- Constant Field Values
-
ONLRET
private static final int ONLRET
- See Also:
- Constant Field Values
-
OFILL
private static final int OFILL
- See Also:
- Constant Field Values
-
NLDLY
private static final int NLDLY
- See Also:
- Constant Field Values
-
TABDLY
private static final int TABDLY
- See Also:
- Constant Field Values
-
CRDLY
private static final int CRDLY
- See Also:
- Constant Field Values
-
FFDLY
private static final int FFDLY
- See Also:
- Constant Field Values
-
BSDLY
private static final int BSDLY
- See Also:
- Constant Field Values
-
VTDLY
private static final int VTDLY
- See Also:
- Constant Field Values
-
OFDEL
private static final int OFDEL
- See Also:
- Constant Field Values
-
CIGNORE
private static final int CIGNORE
- See Also:
- Constant Field Values
-
CS5
private static final int CS5
- See Also:
- Constant Field Values
-
CS6
private static final int CS6
- See Also:
- Constant Field Values
-
CS7
private static final int CS7
- See Also:
- Constant Field Values
-
CS8
private static final int CS8
- See Also:
- Constant Field Values
-
CSTOPB
private static final int CSTOPB
- See Also:
- Constant Field Values
-
CREAD
private static final int CREAD
- See Also:
- Constant Field Values
-
PARENB
private static final int PARENB
- See Also:
- Constant Field Values
-
PARODD
private static final int PARODD
- See Also:
- Constant Field Values
-
HUPCL
private static final int HUPCL
- See Also:
- Constant Field Values
-
CLOCAL
private static final int CLOCAL
- See Also:
- Constant Field Values
-
CCTS_OFLOW
private static final int CCTS_OFLOW
- See Also:
- Constant Field Values
-
CRTS_IFLOW
private static final int CRTS_IFLOW
- See Also:
- Constant Field Values
-
CDTR_IFLOW
private static final int CDTR_IFLOW
- See Also:
- Constant Field Values
-
CDSR_OFLOW
private static final int CDSR_OFLOW
- See Also:
- Constant Field Values
-
CCAR_OFLOW
private static final int CCAR_OFLOW
- See Also:
- Constant Field Values
-
ECHOKE
private static final int ECHOKE
- See Also:
- Constant Field Values
-
ECHOE
private static final int ECHOE
- See Also:
- Constant Field Values
-
ECHOK
private static final int ECHOK
- See Also:
- Constant Field Values
-
ECHO
private static final int ECHO
- See Also:
- Constant Field Values
-
ECHONL
private static final int ECHONL
- See Also:
- Constant Field Values
-
ECHOPRT
private static final int ECHOPRT
- See Also:
- Constant Field Values
-
ECHOCTL
private static final int ECHOCTL
- See Also:
- Constant Field Values
-
ISIG
private static final int ISIG
- See Also:
- Constant Field Values
-
ICANON
private static final int ICANON
- See Also:
- Constant Field Values
-
ALTWERASE
private static final int ALTWERASE
- See Also:
- Constant Field Values
-
IEXTEN
private static final int IEXTEN
- See Also:
- Constant Field Values
-
EXTPROC
private static final int EXTPROC
- See Also:
- Constant Field Values
-
TOSTOP
private static final int TOSTOP
- See Also:
- Constant Field Values
-
FLUSHO
private static final int FLUSHO
- See Also:
- Constant Field Values
-
NOKERNINFO
private static final int NOKERNINFO
- See Also:
- Constant Field Values
-
PENDIN
private static final int PENDIN
- See Also:
- Constant Field Values
-
NOFLSH
private static final int NOFLSH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OsXNativePty
public OsXNativePty(int master, java.io.FileDescriptor masterFD, int slave, java.io.FileDescriptor slaveFD, java.lang.String name)
-
OsXNativePty
public OsXNativePty(int master, java.io.FileDescriptor masterFD, int slave, java.io.FileDescriptor slaveFD, int slaveOut, java.io.FileDescriptor slaveOutFD, java.lang.String name)
-
-
Method Detail
-
current
public static OsXNativePty current() throws java.io.IOException
- Throws:
java.io.IOException
-
open
public static OsXNativePty open(Attributes attr, Size size) throws java.io.IOException
- Throws:
java.io.IOException
-
toTermios
protected org.fusesource.jansi.internal.CLibrary.Termios toTermios(Attributes t)
- Specified by:
toTermiosin classJansiNativePty
-
termios
static org.fusesource.jansi.internal.CLibrary.Termios termios(Attributes t)
-
toAttributes
protected Attributes toAttributes(org.fusesource.jansi.internal.CLibrary.Termios tio)
- Specified by:
toAttributesin classJansiNativePty
-
setFlag
private static long setFlag(boolean flag, long value, long org)
-
addFlag
private static <T extends java.lang.Enum<T>> void addFlag(long value, java.util.EnumSet<T> flags, T flag, int v)
-
-