Sha256: 55851f9315e13423a7bd01ef2a129cc96b2792c02b1190c232c7d2d466898d0a

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'ppcurses'
#require_relative '../lib/ppcurses.rb'

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.16 test/getDataAction.rb