Archived
1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
cli-old/lib/widgets/peers.rb

52 lines
691 B
Ruby
Raw Normal View History

2017-07-21 10:43:08 -04:00
# frozen_string_literal: true
module Widgets
class Peers
def initialize(x, y, width, height)
2017-07-21 11:13:52 -04:00
@search = Widgets::Search.new x, y, width, 1
@list = Widgets::List.new x, y + 1, width, height - 1
2017-07-21 10:43:08 -04:00
end
def render
@search.render
@list.render
end
def putc(event)
@search.putc event
end
def left
@search.left
end
def right
@search.right
end
def home
@search.home
end
def endk
@search.endk
end
def backspace
@search.backspace
end
def delete
@search.delete
end
def up
@list.up
end
def down
@list.down
end
end
end