Class: Reline::GeneralIO
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/reline/general_io.rb |
Constant Summary
-
RAW_KEYSTROKE_CONFIG =
# File 'lib/reline/general_io.rb', line 16{}
Class Attribute Summary
- .in_pasting? ⇒ Boolean readonly
- .input=(val) writeonly
- .win? ⇒ Boolean readonly
Class Method Summary
Class Attribute Details
.in_pasting? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/reline/general_io.rb', line 76
def self.in_pasting? @@pasting end
.input=(val) (writeonly)
[ GitHub ]# File 'lib/reline/general_io.rb', line 20
def self.input=(val) @@input = val end
.win? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/reline/general_io.rb', line 12
def self.win? false end
Class Method Details
.clear_screen
[ GitHub ]# File 'lib/reline/general_io.rb', line 65
def self.clear_screen end
.cursor_pos
[ GitHub ].deprep(otio)
[ GitHub ]# File 'lib/reline/general_io.rb', line 91
def self.deprep(otio) end
.encoding
[ GitHub ]# File 'lib/reline/general_io.rb', line 8
def self.encoding RUBY_PLATFORM =~ /mswin|mingw/ ? Encoding::UTF_8 : Encoding::default_external end
.erase_after_cursor
[ GitHub ]# File 'lib/reline/general_io.rb', line 59
def self.erase_after_cursor end
.finish_pasting
[ GitHub ]# File 'lib/reline/general_io.rb', line 84
def self.finish_pasting @@pasting = false end
.get_screen_size
[ GitHub ]# File 'lib/reline/general_io.rb', line 42
def self.get_screen_size [1, 1] end
.getc
[ GitHub ]# File 'lib/reline/general_io.rb', line 24
def self.getc unless @@buf.empty? return @@buf.shift end c = nil loop do result = select([@@input], [], [], 0.1) next if result.nil? c = @@input.read(1) break end c&.ord end
.move_cursor_column(val)
[ GitHub ]# File 'lib/reline/general_io.rb', line 50
def self.move_cursor_column(val) end
.move_cursor_down(val)
[ GitHub ]# File 'lib/reline/general_io.rb', line 56
def self.move_cursor_down(val) end
.move_cursor_up(val)
[ GitHub ]# File 'lib/reline/general_io.rb', line 53
def self.move_cursor_up(val) end
.prep
[ GitHub ]# File 'lib/reline/general_io.rb', line 88
def self.prep end
.reset
[ GitHub ]# File 'lib/reline/general_io.rb', line 4
def self.reset @@pasting = false end
.scroll_down(val)
[ GitHub ]# File 'lib/reline/general_io.rb', line 62
def self.scroll_down(val) end
.set_screen_size(rows, columns)
[ GitHub ]# File 'lib/reline/general_io.rb', line 68
def self.set_screen_size(rows, columns) end
.set_winch_handler(&handler)
[ GitHub ]# File 'lib/reline/general_io.rb', line 71
def self.set_winch_handler(&handler) end
.start_pasting
[ GitHub ]# File 'lib/reline/general_io.rb', line 80
def self.start_pasting @@pasting = true end
.ungetc(c)
[ GitHub ]# File 'lib/reline/general_io.rb', line 38
def self.ungetc(c) @@buf.unshift(c) end