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

Version Path
ppcurses-0.0.16 test/menuInMenu.rb
ppcurses-0.0.15 test/menuInMenu.rb
ppcurses-0.0.14 test/menuInMenu.rb
ppcurses-0.0.13 test/menuInMenu.rb
ppcurses-0.0.12 test/menuInMenu.rb
ppcurses-0.0.11 test/menuInMenu.rb
ppcurses-0.0.10 test/menuInMenu.rb
ppcurses-0.0.9 test/menuInMenu.rb