Sha256: 9e08231c5f7d500e2c4e139bfb2e231508570529e05527853c2c5dbf4e1abb27

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 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 = ShowMenuAction.new(innerMenu) 
  mainMenu.setGlobalAction(menuAction)

  mainMenu.show()
  mainMenu.getMenuSelection() 
  mainMenu.close()
end

screen = PPCurses::Screen.new()
screen.run { displayMenu() }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ppcurses-0.0.8 test/menuInMenu.rb