NAME

Term::Caca::Event::Key::Press - event generated by a key pressed

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 => $KEY_PRESS,
    );  
    
    print "character typed: ", $event->char;
}

DESCRIPTION

Generated when a key is pressed.

METHODS

char()

Returns the character pressed.

SEE ALSO

Term::Caca::Event::Key, Term::Caca::Event::Key::Release

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