Class LinuxNativePty
- java.lang.Object
-
- org.jline.terminal.impl.AbstractPty
-
- org.jline.terminal.impl.jansi.JansiNativePty
-
- org.jline.terminal.impl.jansi.linux.LinuxNativePty
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Pty
public class LinuxNativePty extends JansiNativePty
-
-
Field Summary
Fields Modifier and Type Field Description private static intB0private static intB110private static intB1200private static intB134private static intB150private static intB1800private static intB19200private static intB200private static intB2400private static intB300private static intB38400private static intB4800private static intB50private static intB600private static intB75private static intB9600private static intBRKINTprivate static intBS0private static intBS1private static intBSDLYprivate static intCBAUDprivate static intCLOCALprivate static intCR0private static intCR1private static intCR2private static intCR3private static intCRDLYprivate static intCREADprivate static intCS5private static intCS6private static intCS7private static intCS8private static intCSIZEprivate static intCSTOPBprivate static intECHOprivate static intECHOCTLprivate static intECHOEprivate static intECHOKprivate static intECHOKEprivate static intECHONLprivate static intECHOPRTprivate static intEXTAprivate static intEXTBprivate static intEXTPROCprivate static intFF0private static intFF1private 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 intIUCLCprivate static intIUTF8private static intIXANYprivate static intIXOFFprivate static intIXONprivate static intNL0private static intNL1private static intNLDLYprivate static intNOFLSHprivate static intOCRNLprivate static intOFDELprivate static intOFILLprivate static intOLCUCprivate static intONLCRprivate static intONLRETprivate static intONOCRprivate static intOPOSTprivate static intPARENBprivate static intPARMRKprivate static intPARODDprivate static intPENDINprivate static intTAB0private static intTAB1private static intTAB2private static intTAB3private static intTABDLYprivate static intTOSTOPprivate static intVDISCARDprivate static intVEOFprivate static intVEOLprivate static intVEOL2private static intVERASEprivate static intVINTRprivate static intVKILLprivate static intVLNEXTprivate static intVMINprivate static intVQUITprivate static intVREPRINTprivate static intVSTARTprivate static intVSTOPprivate static intVSUSPprivate static intVSWTCprivate static intVT0private static intVT1private static intVTDLYprivate static intVTIMEprivate static intVWERASEprivate static intXCASEprivate static intXTABS
-
Constructor Summary
Constructors Constructor Description LinuxNativePty(int master, java.io.FileDescriptor masterFD, int slave, java.io.FileDescriptor slaveFD, int slaveOut, java.io.FileDescriptor slaveOutFD, java.lang.String name)LinuxNativePty(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 LinuxNativePtycurrent()static LinuxNativePtyopen(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
-
VINTR
private static final int VINTR
- See Also:
- Constant Field Values
-
VQUIT
private static final int VQUIT
- See Also:
- Constant Field Values
-
VERASE
private static final int VERASE
- See Also:
- Constant Field Values
-
VKILL
private static final int VKILL
- See Also:
- Constant Field Values
-
VEOF
private static final int VEOF
- See Also:
- Constant Field Values
-
VTIME
private static final int VTIME
- See Also:
- Constant Field Values
-
VMIN
private static final int VMIN
- See Also:
- Constant Field Values
-
VSWTC
private static final int VSWTC
- 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
-
VSUSP
private static final int VSUSP
- See Also:
- Constant Field Values
-
VEOL
private static final int VEOL
- See Also:
- Constant Field Values
-
VREPRINT
private static final int VREPRINT
- See Also:
- Constant Field Values
-
VDISCARD
private static final int VDISCARD
- See Also:
- Constant Field Values
-
VWERASE
private static final int VWERASE
- See Also:
- Constant Field Values
-
VLNEXT
private static final int VLNEXT
- See Also:
- Constant Field Values
-
VEOL2
private static final int VEOL2
- 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
-
IUCLC
private static final int IUCLC
- See Also:
- Constant Field Values
-
IXON
private static final int IXON
- See Also:
- Constant Field Values
-
IXANY
private static final int IXANY
- See Also:
- Constant Field Values
-
IXOFF
private static final int IXOFF
- 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
-
OLCUC
private static final int OLCUC
- See Also:
- Constant Field Values
-
ONLCR
private static final int ONLCR
- 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
-
OFDEL
private static final int OFDEL
- See Also:
- Constant Field Values
-
NLDLY
private static final int NLDLY
- See Also:
- Constant Field Values
-
NL0
private static final int NL0
- See Also:
- Constant Field Values
-
NL1
private static final int NL1
- See Also:
- Constant Field Values
-
CRDLY
private static final int CRDLY
- See Also:
- Constant Field Values
-
CR0
private static final int CR0
- See Also:
- Constant Field Values
-
CR1
private static final int CR1
- See Also:
- Constant Field Values
-
CR2
private static final int CR2
- See Also:
- Constant Field Values
-
CR3
private static final int CR3
- See Also:
- Constant Field Values
-
TABDLY
private static final int TABDLY
- See Also:
- Constant Field Values
-
TAB0
private static final int TAB0
- See Also:
- Constant Field Values
-
TAB1
private static final int TAB1
- See Also:
- Constant Field Values
-
TAB2
private static final int TAB2
- See Also:
- Constant Field Values
-
TAB3
private static final int TAB3
- See Also:
- Constant Field Values
-
XTABS
private static final int XTABS
- See Also:
- Constant Field Values
-
BSDLY
private static final int BSDLY
- See Also:
- Constant Field Values
-
BS0
private static final int BS0
- See Also:
- Constant Field Values
-
BS1
private static final int BS1
- See Also:
- Constant Field Values
-
VTDLY
private static final int VTDLY
- See Also:
- Constant Field Values
-
VT0
private static final int VT0
- See Also:
- Constant Field Values
-
VT1
private static final int VT1
- See Also:
- Constant Field Values
-
FFDLY
private static final int FFDLY
- See Also:
- Constant Field Values
-
FF0
private static final int FF0
- See Also:
- Constant Field Values
-
FF1
private static final int FF1
- See Also:
- Constant Field Values
-
CBAUD
private static final int CBAUD
- See Also:
- Constant Field Values
-
B0
private static final int B0
- See Also:
- Constant Field Values
-
B50
private static final int B50
- See Also:
- Constant Field Values
-
B75
private static final int B75
- See Also:
- Constant Field Values
-
B110
private static final int B110
- See Also:
- Constant Field Values
-
B134
private static final int B134
- See Also:
- Constant Field Values
-
B150
private static final int B150
- See Also:
- Constant Field Values
-
B200
private static final int B200
- See Also:
- Constant Field Values
-
B300
private static final int B300
- See Also:
- Constant Field Values
-
B600
private static final int B600
- See Also:
- Constant Field Values
-
B1200
private static final int B1200
- See Also:
- Constant Field Values
-
B1800
private static final int B1800
- See Also:
- Constant Field Values
-
B2400
private static final int B2400
- See Also:
- Constant Field Values
-
B4800
private static final int B4800
- See Also:
- Constant Field Values
-
B9600
private static final int B9600
- See Also:
- Constant Field Values
-
B19200
private static final int B19200
- See Also:
- Constant Field Values
-
B38400
private static final int B38400
- See Also:
- Constant Field Values
-
EXTA
private static final int EXTA
- See Also:
- Constant Field Values
-
EXTB
private static final int EXTB
- See Also:
- Constant Field Values
-
CSIZE
private static final int CSIZE
- 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
-
ISIG
private static final int ISIG
- See Also:
- Constant Field Values
-
ICANON
private static final int ICANON
- See Also:
- Constant Field Values
-
XCASE
private static final int XCASE
- See Also:
- Constant Field Values
-
ECHO
private static final int ECHO
- 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
-
ECHONL
private static final int ECHONL
- See Also:
- Constant Field Values
-
NOFLSH
private static final int NOFLSH
- See Also:
- Constant Field Values
-
TOSTOP
private static final int TOSTOP
- See Also:
- Constant Field Values
-
ECHOCTL
private static final int ECHOCTL
- See Also:
- Constant Field Values
-
ECHOPRT
private static final int ECHOPRT
- See Also:
- Constant Field Values
-
ECHOKE
private static final int ECHOKE
- See Also:
- Constant Field Values
-
FLUSHO
private static final int FLUSHO
- See Also:
- Constant Field Values
-
PENDIN
private static final int PENDIN
- 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
-
-
Constructor Detail
-
LinuxNativePty
public LinuxNativePty(int master, java.io.FileDescriptor masterFD, int slave, java.io.FileDescriptor slaveFD, java.lang.String name)
-
LinuxNativePty
public LinuxNativePty(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 LinuxNativePty current() throws java.io.IOException
- Throws:
java.io.IOException
-
open
public static LinuxNativePty 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)
-
-