Sha256: d5c59030ed184828d7dd02d86faa928fbcb4bf453aac6fa642a3ec5b56a37d03
Contents?: true
Size: 474 Bytes
Versions: 4
Compression:
Stored size: 474 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require_relative '../lib/ppcurses.rb' def displayMenu() mainMenu = PPCurses::Menu.new( [ "Press", "<ESCAPE>", "to Quit" ], nil ) innerMenu = PPCurses::Menu.new( [ "Wow", "another", "menu" ], nil ) menuAction = PPCurses::ShowMenuAction.new(innerMenu) mainMenu.setGlobalAction(menuAction) mainMenu.show() mainMenu.getMenuSelection() mainMenu.close() end screen = PPCurses::Screen.new() screen.run { displayMenu() }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ppcurses-0.0.20 | test/menuInMenu.rb |
ppcurses-0.0.19 | test/menuInMenu.rb |
ppcurses-0.0.18 | test/menuInMenu.rb |
ppcurses-0.0.17 | test/menuInMenu.rb |