Class JansiNativePty

    • Field Detail

      • master

        private final int master
      • slave

        private final int slave
      • slaveOut

        private final int slaveOut
      • name

        private final java.lang.String name
      • masterFD

        private final java.io.FileDescriptor masterFD
      • slaveFD

        private final java.io.FileDescriptor slaveFD
      • slaveOutFD

        private final java.io.FileDescriptor slaveOutFD
    • Constructor Detail

      • JansiNativePty

        public JansiNativePty​(int master,
                              java.io.FileDescriptor masterFD,
                              int slave,
                              java.io.FileDescriptor slaveFD,
                              java.lang.String name)
      • JansiNativePty

        public JansiNativePty​(int master,
                              java.io.FileDescriptor masterFD,
                              int slave,
                              java.io.FileDescriptor slaveFD,
                              int slaveOut,
                              java.io.FileDescriptor slaveOutFD,
                              java.lang.String name)
    • Method Detail

      • ttyname

        protected static java.lang.String ttyname()
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • getMaster

        public int getMaster()
      • getSlave

        public int getSlave()
      • getSlaveOut

        public int getSlaveOut()
      • getName

        public java.lang.String getName()
      • getMasterFD

        public java.io.FileDescriptor getMasterFD()
      • getSlaveFD

        public java.io.FileDescriptor getSlaveFD()
      • getSlaveOutFD

        public java.io.FileDescriptor getSlaveOutFD()
      • getMasterInput

        public java.io.InputStream getMasterInput()
        Specified by:
        getMasterInput in interface Pty
      • getMasterOutput

        public java.io.OutputStream getMasterOutput()
        Specified by:
        getMasterOutput in interface Pty
      • getSlaveOutput

        public java.io.OutputStream getSlaveOutput()
        Specified by:
        getSlaveOutput in interface Pty
      • getAttr

        public Attributes getAttr()
                           throws java.io.IOException
        Specified by:
        getAttr in interface Pty
        Throws:
        java.io.IOException
      • doSetAttr

        protected void doSetAttr​(Attributes attr)
                          throws java.io.IOException
        Specified by:
        doSetAttr in class AbstractPty
        Throws:
        java.io.IOException
      • getSize

        public Size getSize()
                     throws java.io.IOException
        Specified by:
        getSize in interface Pty
        Throws:
        java.io.IOException
      • setSize

        public void setSize​(Size size)
                     throws java.io.IOException
        Specified by:
        setSize in interface Pty
        Throws:
        java.io.IOException
      • toTermios

        protected abstract org.fusesource.jansi.internal.CLibrary.Termios toTermios​(Attributes t)
      • toAttributes

        protected abstract Attributes toAttributes​(org.fusesource.jansi.internal.CLibrary.Termios tios)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • newDescriptor

        protected static java.io.FileDescriptor newDescriptor​(int fd)