Class
Constants
No documentation available
Class Methods
::
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 91
def self.clear_screen
end
No documentation available
::
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 66
def self.cursor_pos
Reline::CursorPos.new(1, 1)
end
No documentation available
::
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 109
def self.deprep(otio)
end
No documentation available
::
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 15
def self.encoding
if defined?(@@encoding)
@@encoding
elsif RUBY_PLATFORM =~ /mswin|mingw/
Encoding::UTF_8
else
Encoding::default_external
end
end
No documentation available
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 85
def self.erase_after_cursor
end
No documentation available
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 62
def self.get_screen_size
[24, 80]
end
No documentation available
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 43
def self.getc(_timeout_second)
unless @@buf.empty?
return @@buf.shift
end
c = nil
loop do
Reline.core.line_editor.handle_signal
result = @@input.wait_readable(0.1)
next if result.nil?
c = @@input.read(1)
break
end
c&.ord
end
No documentation available
::
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 70
def self.hide_cursor
end
No documentation available
::
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 102
def self.in_pasting?
@@pasting
end
No documentation available
::
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 35
def self.input=(val)
@@input = val
end
No documentation available
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 76
def self.move_cursor_column(val)
end
No documentation available
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 82
def self.move_cursor_down(val)
end
No documentation available
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 79
def self.move_cursor_up(val)
end
No documentation available
::
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 106
def self.prep
end
No documentation available
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 6
def self.reset(encoding: nil)
@@pasting = false
if encoding
@@encoding = encoding
elsif defined?(@@encoding)
remove_class_variable(:@@encoding)
end
end
No documentation available
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 88
def self.scroll_down(val)
end
No documentation available
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 29
def self.set_default_key_bindings(_)
end
No documentation available
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 94
def self.set_screen_size(rows, columns)
end
No documentation available
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 97
def self.set_winch_handler(&handler)
end
No documentation available
::
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 73
def self.show_cursor
end
No documentation available
::
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 58
def self.ungetc(c)
@@buf.unshift(c)
end
No documentation available
::
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 25
def self.win?
false
end
No documentation available
lib/reline/general_io.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/reline/general_io.rb, line 39
def self.with_raw_input
yield
end
No documentation available