Pseudo terminal utilities.
(master_fd, slave_fd)
|
openpty()
Open a pty master/slave pair, using os.openpty() if possible. |
|
|
(master_fd, slave_name)
|
master_open()
Open a pty master and return the fd, and the filename of the slave
end. |
|
|
|
|
slave_fd
|
slave_open(tty_name)
Open the pty slave and acquire the controlling terminal, returning
opened filedescriptor. |
|
|
(pid, master_fd)
|
fork()
Fork and make the child a session leader with a controlling terminal. |
|
|
|
_writen(fd,
data)
Write all the data to a descriptor. |
|
|
|
_read(fd)
Default read function. |
|
|
|
_copy(master_fd,
master_read=<function _read at 0x412ad79c>,
stdin_read=<function _read at 0x412ad79c>)
Parent copy loop. |
|
|
|
spawn(argv,
master_read=<function _read at 0x412ad79c>,
stdin_read=<function _read at 0x412ad79c>)
Create a spawned process. |
|
|