Term::Caca::Event::Key - event generated by a keyboard activity
version 3.1.0
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; }
Generated when a key is pressed or released.
Returns the character pressed or released.
John Beppu <beppu@cpan.org>
Yanick Champoux <yanick@cpan.org>
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
To install Term::Caca, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::Caca
CPAN shell
perl -MCPAN -e shell install Term::Caca
For more information on module installation, please visit the detailed CPAN module installation guide.