pty

Pseudo terminal utilities.

Functions

fork() -> (pid, master_fd) Fork and make the child a session leader with a controlling terminal.
master_open() -> (master_fd, slave_name) Open a pty master and return the fd, and the filename of the slave end.
openpty() -> (master_fd, slave_fd) Open a pty master/slave pair, using os.openpty() if possible.
select(rlist, wlist, xlist[, ...) Wait until one or more file descriptors are ready for some kind of I/O.
slave_open((tty_name) -> slave_fd) Open the pty slave and acquire the controlling terminal, returning opened filedescriptor.
spawn(argv[, master_read, stdin_read]) Create a spawned process.