Big menu items
This commit is contained in:
parent
c3c1f68b0b
commit
af5f7bcb4f
1 changed files with 8 additions and 1 deletions
|
@ -21,8 +21,15 @@ module Widgets
|
|||
def render
|
||||
ITEMS.each_with_index do |item, index|
|
||||
Curses.attron Curses.color_pair 5
|
||||
|
||||
Curses.setpos 1 + y + index * 4, 2
|
||||
Curses.addstr ' ' * (width - 4)
|
||||
|
||||
Curses.setpos 2 + y + index * 4, 2
|
||||
Curses.addstr item
|
||||
Curses.addstr " #{item}".ljust width - 4
|
||||
|
||||
Curses.setpos 3 + y + index * 4, 2
|
||||
Curses.addstr ' ' * (width - 4)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Reference in a new issue