libanyevent-termkey-perl

Module for terminal key input using libtermkey with anyevent
  https://metacpan.org/release/AnyEvent-TermKey
  0
  no reviews



Anyevent::termkey 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.

proxy methods exist for normal accessors of term::termkey, and the usual behaviour of the getkey or other methods is instead replaced by the on_key event.