From af5f7bcb4f0d91756c035ba92866c92f442c1550 Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Fri, 21 Jul 2017 15:05:10 +0000 Subject: [PATCH] Big menu items --- lib/widgets/menu.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/widgets/menu.rb b/lib/widgets/menu.rb index 3cd6330..45d780f 100644 --- a/lib/widgets/menu.rb +++ b/lib/widgets/menu.rb @@ -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