Sha256: bdd5de41700fbde9a3080ef788027639d9a59cec49dbfc6e5cb790659adae151

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'ppcurses'

intAction = PPCurses::GetIntegerAction.new("Input Integer : ");
stringAction = PPCurses::GetStringAction.new("Input your name: ");

action = PPCurses::GetDataAction.new( [intAction, stringAction] )

def doIntegerAction(action)
  action.show()
  action.execute()
end

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

puts "Value input was: " + action.data().to_s()

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ppcurses-0.0.15 test/getDataAction.rb