The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

version 1.2.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) 2011 by John Beppu.

This is free software, licensed under:

  DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE, Version 2, December 2004