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 int
ALTWERASE
private static int
BRKINT
private static int
BSDLY
private static int
CCAR_OFLOW
private static int
CCTS_OFLOW
private static int
CDSR_OFLOW
private static int
CDTR_IFLOW
private static int
CIGNORE
private static int
CLOCAL
private static int
CRDLY
private static int
CREAD
private static int
CRTS_IFLOW
private static int
CS5
private static int
CS6
private static int
CS7
private static int
CS8
private static int
CSTOPB
private static int
ECHO
private static int
ECHOCTL
private static int
ECHOE
private static int
ECHOK
private static int
ECHOKE
private static int
ECHONL
private static int
ECHOPRT
private static int
EXTPROC
private static int
FFDLY
private static int
FLUSHO
private static int
HUPCL
private static int
ICANON
private static int
ICRNL
private static int
IEXTEN
private static int
IGNBRK
private static int
IGNCR
private static int
IGNPAR
private static int
IMAXBEL
private static int
INLCR
private static int
INPCK
private static int
ISIG
private static int
ISTRIP
private static int
IUTF8
private static int
IXANY
private static int
IXOFF
private static int
IXON
private static int
NLDLY
private static int
NOFLSH
private static int
NOKERNINFO
private static int
OCRNL
private static int
OFDEL
private static int
OFILL
private static int
ONLCR
private static int
ONLRET
private static int
ONOCR
private static int
ONOEOT
private static int
OPOST
private static int
OXTABS
private static int
PARENB
private static int
PARMRK
private static int
PARODD
private static int
PENDIN
private static int
TABDLY
private static int
TOSTOP
private static int
VDISCARD
private static int
VDSUSP
private static int
VEOF
private static int
VEOL
private static int
VEOL2
private static int
VERASE
private static int
VINTR
private static int
VKILL
private static int
VLNEXT
private static int
VMIN
private static int
VQUIT
private static int
VREPRINT
private static int
VSTART
private static int
VSTATUS
private static int
VSTOP
private static int
VSUSP
private static int
VTDLY
private static int
VTIME
private static int
VWERASE
-
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 OsXNativePty
current(TerminalProvider.Stream consoleStream)
static OsXNativePty
open(Attributes attr, Size size)
private static long
setFlag(boolean flag, long value, long org)
(package private) static org.fusesource.jansi.internal.CLibrary.Termios
termios(Attributes t)
protected Attributes
toAttributes(org.fusesource.jansi.internal.CLibrary.Termios tio)
protected org.fusesource.jansi.internal.CLibrary.Termios
toTermios(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, isPosixSystemStream, posixSystemStreamName, setSize, toString, ttyname
-
Methods inherited from class org.jline.terminal.impl.AbstractPty
checkInterrupted, getSlaveInput, newDescriptor, 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(TerminalProvider.Stream consoleStream) 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:
toTermios
in 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:
toAttributes
in 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)
-
-