Sha256: d1a8f525fd54d41bdbc6b8c7f642fe25f5a29a57fa3d269f4e9c9d9cffb65fb6
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ppcurses-0.0.21 | test/menuInMenu.rb |