class View::Base
Public Instance Methods
stdscr()
click to toggle source
# File lib/view/base.rb, line 3 def stdscr Ncurses.stdscr end
with_color(window, name) { || ... }
click to toggle source
# File lib/view/base.rb, line 7 def with_color(window, name) window.attron Ncurses.COLOR_PAIR(Colors[name][:number]) yield if block_given? window.attroff Ncurses.COLOR_PAIR(Colors[name][:number]) end