Sha256: 23c5b8e8e94d0d1461359bcbbe3fc73e64a9b7e7be8a7ef7e3c9d20f5ce827c8
Contents?: true
Size: 465 Bytes
Versions: 7
Compression:
Stored size: 465 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require_relative '../../lib/ppcurses.rb' def display_menu main_menu = PPCurses::Menu.new( [ 'Press', '<ESCAPE>', 'to Quit'], nil ) inner_menu = PPCurses::Menu.new( %w(Wow another menu), nil ) menu_action = PPCurses::ShowMenuAction.new(inner_menu) main_menu.set_global_action(menu_action) main_menu.show main_menu.menu_selection main_menu.close end screen = PPCurses::Screen.new screen.run { display_menu }
Version data entries
7 entries across 7 versions & 1 rubygems