Sha256: 79ded4ad644acd4a5d495af7a7326bc1223e44e3776ff81e6d7f0a7bc1031318

Contents?: true

Size: 325 Bytes

Versions: 7

Compression:

Stored size: 325 Bytes

Contents

#!/usr/bin/env ruby

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

action = PPCurses::GetStringAction.new('Input your name: ')

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

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ppcurses-0.1.1 test/getStringAction.rb
ppcurses-0.1.0 test/getStringAction.rb
ppcurses-0.0.25 test/getStringAction.rb
ppcurses-0.0.24 test/getStringAction.rb
ppcurses-0.0.23 test/getStringAction.rb
ppcurses-0.0.22 test/getStringAction.rb
ppcurses-0.0.21 test/getStringAction.rb