Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby19 /
share /
ri /
1.9.1 /
system /
PTY /
Delete
Unzip
Name
Size
Permission
Date
Action
ChildExited
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
cdesc-PTY.ri
423
B
-rw-r--r--
2023-07-26 17:26
check-c.ri
968
B
-rw-r--r--
2023-07-26 17:26
getpty-c.ri
1.65
KB
-rw-r--r--
2023-07-26 17:26
open-c.ri
2.13
KB
-rw-r--r--
2023-07-26 17:26
spawn-c.ri
1.65
KB
-rw-r--r--
2023-07-26 17:26
Save
Rename
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"HIn the non-block form, returns a two element array, <tt>[master_io,;TI"slave_file]</tt>.;T@o; ; [I"KIn 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"NThe IO and File are both closed after the block completes if they haven't;TI"been already closed.;T@o; ; [I"%The arguments in both forms are:;T@o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@labelI"<tt>master_io</tt>;T; [o; ; [I"%the master of the pty, as an IO.;To;;I"<tt>slave_file</tt>;T; [o; ; [I"6the slave of the pty, as a File. The path to the;TI"%terminal device is available via;TI"<tt>slave_file.path</tt>;T@S:RDoc::Markup::Heading: leveli: textI"Example;T@o:RDoc::Markup::Verbatim; [#I"PTY.open {|m, s| ;FI"/ p m #=> #<IO:masterpty:/dev/pts/1> ;FI"' p s #=> #<File:/dev/pts/1> ;FI"! p s.path #=> "/dev/pts/1" ;FI"} ;FI" ;FI"4# Change the buffering type in factor command, ;FI"=# assuming that factor uses stdio for stdout buffering. ;FI"/# If IO.pipe is used instead of PTY.open, ;FI"F# this code deadlocks because factor's stdout is fully buffered. ;FI"(require 'io/console' # for IO#raw! ;FI"m, s = PTY.open ;FI"*s.raw! # disable newline conversion. ;FI"r, w = IO.pipe ;FI",pid = spawn("factor", :in=>r, :out=>s) ;FI" r.close ;FI" s.close ;FI"w.puts "42" ;FI" p m.gets #=> "42: 2 3 7\n" ;FI"w.puts "144" ;FI"'p m.gets #=> "144: 2 2 2 2 3 3\n" ;FI" w.close ;FI"I# The result of read operation when pty slave is closed is platform ;FI"# dependent. ;FI"ret = begin ;FI"4 m.gets # FreeBSD returns nil. ;FI"5 rescue Errno::EIO # GNU/Linux raises EIO. ;FI" nil ;FI" end ;FI"p ret #=> nil;F: @file0I"aPTY.open => [master_io, slave_file] PTY.open {|master_io, slave_file| ... } => block value ;T0[ I"();FI"ext/pty/pty.c;T