Flowdock
getpty(*args) public

spawns the specified command on a newly allocated pty.

The command’s controlling tty is set to the slave device of the pty. Also its standard input/output/error is redirected to the slave device.

PTY.spawn returns two IO objects and PID. PID is the process ID of the command. The two IO objects are connected to the master device of the pty. The first IO object is opened as read mode and The second is opened as write mode.

If a block is given, two IO objects and PID is yielded.

Show source
Register or log in to add new notes.