Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /opt/alt/ruby34/share/ruby/reline//io.rb
module Reline
class IO
RESET_COLOR = "\e[0m"
def self.decide_io_gate
if ENV['TERM'] == 'dumb'
Reline::Dumb.new
else
require 'reline/io/ansi'
case RbConfig::CONFIG['host_os']
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
require 'reline/io/windows'
io = Reline::Windows.new
if io.msys_tty?
Reline::ANSI.new
else
io
end
else
Reline::ANSI.new
end
end
end
def dumb?
false
end
def win?
false
end
def reset_color_sequence
self.class::RESET_COLOR
end
# Read a single encoding valid character from the input.
def read_single_char(keyseq_timeout)
buffer = String.new(encoding: Encoding::ASCII_8BIT)
loop do
timeout = buffer.empty? ? Float::INFINITY : keyseq_timeout
c = getc(timeout)
return unless c
buffer << c
encoded = buffer.dup.force_encoding(encoding)
return encoded if encoded.valid_encoding?
end
end
end
end
require 'reline/io/dumb'
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | June 26 2025 08:35:37 | root / linksafe | 0755 | |
io | -- | June 26 2025 08:35:32 | root / linksafe | 0755 | |
key_actor | -- | June 26 2025 08:35:32 | root / linksafe | 0755 | |
unicode | -- | June 26 2025 08:35:32 | root / linksafe | 0755 | |
| | | | | |
config.rb | 10.158 KB | May 29 2025 13:39:42 | root / linksafe | 0644 | |
face.rb | 4.785 KB | May 29 2025 13:39:42 | root / linksafe | 0644 | |
history.rb | 1.89 KB | May 29 2025 13:39:42 | root / linksafe | 0644 | |
io.rb | 1.103 KB | May 29 2025 13:39:42 | root / linksafe | 0644 | |
key_actor.rb | 0.201 KB | May 29 2025 13:39:42 | root / linksafe | 0644 | |
key_stroke.rb | 3.215 KB | May 29 2025 13:39:42 | root / linksafe | 0644 | |
kill_ring.rb | 2.372 KB | May 29 2025 13:39:42 | root / linksafe | 0644 | |
line_editor.rb | 76.879 KB | May 29 2025 13:39:42 | root / linksafe | 0644 | |
unicode.rb | 13.003 KB | May 29 2025 13:39:42 | root / linksafe | 0644 | |
version.rb | 0.037 KB | May 29 2025 13:39:42 | root / linksafe | 0644 | |