Curses-Devkit

 view release on metacpan or  search on metacpan

examples/entry  view on Meta::CPAN

#!../../../perl -w

#
# Purpose:
#	To demonstrate the Perl5 Cdk Entry Widget.

#
# Load in the Cdk Extension.
#
use Cdk;
Cdk::init();

# Create a new entry object.
my $entry = new Cdk::Entry ('Label' => "Type Anything: ",
				'Width' => 20,
				'Min' => 0,
				'Max' => 256);

# Activate the object.
my $info = $entry->activate();

# Check the results.
if (!defined $info)
{
   popupLabel (["<C>You hit escape, nothing returned."]);
}
else
{
   popupLabel (["<C>You typed in ($info)"]);
}

# Exit Cdk.
Cdk::end();



( run in 0.887 second using v1.01-cache-2.11-cpan-364913b4093 )