examples/ide.rb in rubytext-0.0.89 vs examples/ide.rb in rubytext-0.0.90
- old
+ new
@@ -38,10 +38,10 @@
puts
end
loop do
show
- n, str = RubyText.menu(r: 10, c: 5, items: items)
+ n, str = STDSCR.menu(r: 10, c: 5, items: items)
puts n.inspect
case n
when 0; system("vi #{@lib}")
when 1; system("vi #{@code}")
when 2; system("tput clear; ruby #{@code}; sleep 5")