Sha256: c1e8ac62b118972ad16a7e68495d0768f0b6a1f50ba279eb16053fcee4aed050
Contents?: true
Size: 455 Bytes
Versions: 8
Compression:
Stored size: 455 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'ppcurses' 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
8 entries across 8 versions & 1 rubygems