Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
PTY
/
//opt/alt/ruby21/share/ri/2.1.0/system/PTY/getpty-c.ri
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::BlankLine o; ; [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"<tt>[r, w, pid]</tt>.;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"4A readable IO that 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