Sha256: de29e3da5bdc8f6bf789edb5d553e6d8891d788999d94b553d59ba53f511f484

Contents?: true

Size: 306 Bytes

Versions: 6

Compression:

Stored size: 306 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'ppcurses'

action = PPCurses::GetBooleanAction.new("Is the sky blue? ");

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ppcurses-0.0.16 test/getBooleanAction.rb
ppcurses-0.0.15 test/getBooleanAction.rb
ppcurses-0.0.14 test/getBooleanAction.rb
ppcurses-0.0.13 test/getBooleanAction.rb
ppcurses-0.0.12 test/getBooleanAction.rb
ppcurses-0.0.11 test/getBooleanAction.rb