NAME
Term::Caca::Event::Key - event generated by a keyboard activity
VERSION
version 3.1.0
SYNOPSIS
use Term::Caca qw/ :events /;
my $t = Term::Caca->new;
while ( 1 ) {
my $event = $t->wait_for_event(
mask => $ANY_KEY,
);
print "character: ", $event->char;
}
DESCRIPTION
Generated when a key is pressed or released.
METHODS
char()
Returns the character pressed or released.
AUTHORS
John Beppu <beppu@cpan.org>
Yanick Champoux <yanick@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2019, 2018, 2013, 2011 by John Beppu.
This is free software, licensed under:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE, Version 2, December 2004