PTY.spawn(command_line) { |r, w, pid| ... }PTY.spawn(command_line) => [r, w, pid]PTY.spawn(command, arguments, ...) { |r, w, pid| ... }PTY.spawn(command, arguments, ...) => [r, w, pid]
Class Public methods
Spawns the specified command on a newly allocated pty. You can also use the
alias ::getpty.
The command's controlling tty is set to the slave device of the pty and
its standard input/output/error is redirected to the slave device.
command and command_line are the full