HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/PTY/open-c.ri
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::BlankLineo;
;	[I"YIn the block form, yields an array of two elements (<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"bPTY.open => [master_io, slave_file]
PTY.open {|(master_io, slave_file)| ... } => block value
;T0[I"();T@DFI"PTY;TcRDoc::NormalModule00