U:RDoc::AnyMethod[iI" getpty:ETI"PTY::getpty;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"QSpawns the specified command on a newly allocated pty. You can also use the ;TI"alias ::getpty.;To:RDoc::Markup::BlankLineo; ; [I"IThe command's controlling tty is set to the slave device of the pty ;TI"Kand its standard input/output/error is redirected to the slave device.;T@o; ; [I"P+command+ and +command_line+ are the full commands to run, given a String. ;TI">Any additional +arguments+ will be passed to the command.;T@S:RDoc::Markup::Heading: leveli: textI"Return values;T@o; ; [I"@In the non-block form this returns an array of size three, ;TI"[r, w, pid].;T@o; ; [I"FIn the block form these same values will be yielded to the block:;T@o:RDoc::Markup::List: @type: NOTE: @items[o:RDoc::Markup::ListItem: @label[I"+r+;T; [o; ; [I"/A readable IO that contains the command's ;TI"'standard output and standard error;To;;[I"+w+;T; [o; ; [I"7A writable IO that is the command's standard input;To;;[I" +pid+;T; [o; ; [I",The process identifier for the command.;T: @fileI"ext/pty/pty.c;T:0@omit_headings_from_table_of_contents_below0I"À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] ;T0[I" (*args);T@9FI"PTY;TcRDoc::NormalModule00