AnyEvent-TermKey
view release on metacpan or search on metacpan
$cv->send if $key->type_is_unicode and
$key->utf8 eq "C" and
$key->modifiers & KEYMOD_CTRL;
},
);
$cv->recv;
DESCRIPTION
This class implements an asynchronous perl wrapper around the
"libtermkey" library, which provides an abstract way to read keypress
events in terminal-based programs. It yields structures that describe
keys, rather than simply returning raw bytes as read from the TTY
device.
It internally uses an instance of Term::TermKey to access the underlying
C library. For details on general operation, including the
representation of keypress events as objects, see the documentation on
that class.
lib/AnyEvent/TermKey.pm view on Meta::CPAN
$cv->send if $key->type_is_unicode and
$key->utf8 eq "C" and
$key->modifiers & KEYMOD_CTRL;
},
);
$cv->recv;
=head1 DESCRIPTION
This class implements an asynchronous perl wrapper around the C<libtermkey>
library, which provides an abstract way to read keypress events in
terminal-based programs. It yields structures that describe keys, rather than
simply returning raw bytes as read from the TTY device.
It internally uses an instance of L<Term::TermKey> to access the underlying C
library. For details on general operation, including the representation of
keypress events as objects, see the documentation on that class.
Proxy methods exist for normal accessors of C<Term::TermKey>, and the usual
behaviour of the C<getkey> or other methods is instead replaced by the
( run in 0.901 second using v1.01-cache-2.11-cpan-0d8aa00de5b )