Permalink
Browse files

testing out prefix command

  • Loading branch information...
1 parent d813f4c commit 0d91c52780f967bfebf9c83772fefa42963a94b8 @rkumar committed Jan 11, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 examples/abasiclist.rb
View
11 examples/abasiclist.rb
@@ -142,6 +142,17 @@ def resize
#install_help_text my_help_text
@form.help_manager.help_text = my_help_text
+ @form.define_prefix_command :csmap, :scope => self
+ #@form.define_key(:csmap, "r", 'refresh') { refresh }
+ @form.define_key(:csmap, "r", 'refresh', :refresh )
+ @form.define_key(:csmap, "s", 'specification') { specification }
+ @form.bind_key ?\C-s, :csmap
+ #pm = PrefixCommand.new :csmap, self do |p|
+ #p.key("r", 'refresh', :refresh )
+ #p.key("s", 'specification'){ specification }
+ #end
+ #@form.bind_key(?\C-x){ pm.call }
+
alist = File.open("data/brew.txt",'r').readlines
list2 = File.open("data/gemlist.txt",'r').readlines
lb = nil

0 comments on commit 0d91c52

Please sign in to comment.