Class FreeBsdNativePty

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, Pty

    public class FreeBsdNativePty
    extends JnaNativePty
    • Constructor Detail

      • FreeBsdNativePty

        public FreeBsdNativePty​(TerminalProvider provider,
                                SystemStream systemStream,
                                int master,
                                java.io.FileDescriptor masterFD,
                                int slave,
                                java.io.FileDescriptor slaveFD,
                                java.lang.String name)
      • FreeBsdNativePty

        public FreeBsdNativePty​(TerminalProvider provider,
                                SystemStream systemStream,
                                int master,
                                java.io.FileDescriptor masterFD,
                                int slave,
                                java.io.FileDescriptor slaveFD,
                                int slaveOut,
                                java.io.FileDescriptor slaveOutFD,
                                java.lang.String name)
    • Method Detail

      • getAttr

        public Attributes getAttr()
                           throws java.io.IOException
        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
        Throws:
        java.io.IOException
      • setSize

        public void setSize​(Size size)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • isatty

        public static int isatty​(int fd)
      • ttyname

        public static java.lang.String ttyname​(int slave)