clear_screen()
click to toggle source
def self.clear_screen
end
cursor_pos()
click to toggle source
def self.cursor_pos
Reline::CursorPos.new(1, 1)
end
deprep(otio)
click to toggle source
def self.deprep(otio)
end
encoding()
click to toggle source
def self.encoding
RUBY_PLATFORM =~ /mswin|mingw/ ? Encoding::UTF_8 : Encoding::default_external
end
erase_after_cursor()
click to toggle source
def self.erase_after_cursor
end
finish_pasting()
click to toggle source
def self.finish_pasting
@@pasting = false
end
get_screen_size()
click to toggle source
def self.get_screen_size
[1, 1]
end
getc()
click to toggle source
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
in_pasting?()
click to toggle source
def self.in_pasting?
@@pasting
end
move_cursor_column(val)
click to toggle source
def self.move_cursor_column(val)
end
move_cursor_down(val)
click to toggle source
def self.move_cursor_down(val)
end
move_cursor_up(val)
click to toggle source
def self.move_cursor_up(val)
end
prep()
click to toggle source
reset()
click to toggle source
def self.reset
@@pasting = false
end
set_screen_size(rows, columns)
click to toggle source
def self.set_screen_size(rows, columns)
end
set_winch_handler(&handler)
click to toggle source
def self.set_winch_handler(&handler)
end
start_pasting()
click to toggle source
def self.start_pasting
@@pasting = true
end
ungetc(c)
click to toggle source
def self.ungetc(c)
@@buf.unshift(c)
end
win?()
click to toggle source