Yanick Champoux > Term-Caca > Term::Caca::Event::Key

Download:
Term-Caca-1.2.0.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: v1.2.0   Source   Latest Release: Term-Caca-2.0_0

NAME ^

Term::Caca::Event::Key - event generated by a keyboard activity

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

DESCRIPTION ^

Generated when a key is pressed or released.

METHODS ^

char()

Returns the character pressed or released.

AUTHORS ^

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
syntax highlighting: