Class: View::Help
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.render ⇒ Object
3 4 5 |
# File 'lib/view/help.rb', line 3 def self.render new.render end |
Instance Method Details
#render ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/view/help.rb', line 7 def render UserInputActor.set_user_input_mode :help stdscr.clear stdscr.move 0, 0 stdscr.printw "Key Bindings\n" stdscr.printw "------------\n\n" UserInputActor::USER_INPUT_MAPPINGS.each_pair do |k,v| with_color(stdscr, :cyan) do stdscr.printw " #{v[:key_desc] || k}" end stdscr.printw " - #{v[:desc]}\n\n" end with_color(stdscr, :blue) do stdscr.printw "Press 'q' to go back." end stdscr.refresh end |