lib/canis/core/util/promptmenu.rb in canis-0.0.4 vs lib/canis/core/util/promptmenu.rb in canis-0.0.5

- old
+ new

@@ -3,11 +3,11 @@ # Description: a simple 'most' type menu at bottom of screen. # Moved from io.rb # Author: j kepler http://github.com/mare-imbrium/canis/ # Date: 2014-04-25 - 12:32 # License: MIT -# Last update: 2014-04-27 00:10 +# Last update: 2014-08-09 18:55 # ----------------------------------------------------------------------------- # # promptmenu.rb Copyright (C) 2012-2014 j kepler # Depends on rcommandwindow for display_menu module Canis @@ -40,9 +40,10 @@ # This allows us to define different menus for different objects on the screen, and not have to map # all kinds of control keys for operations, and have the user remember them. Only one key invokes the menu # and the rest are ordinary characters. # # == Example + # # menu = PromptMenu.new self do # item :s, :goto_start # item :b, :goto_bottom # item :r, :scroll_backward # item :l, :scroll_forward