-
-
03 Mar 2005 17:55:37 UTC
- Distribution: RCU
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (214 / 1 / 0)
- Kwalitee
Bus factor: 1- 8.89% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (18.12KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
RCU::Event - Event-based RCU operation
SYNOPSIS
use RCU::Event; $rcu = connect RCU::Event "interfac-spec", [initial-context]
DESCRIPTION
This module provides a superset of the standard
RCU
interface by adding an event-based interface. Basically, you create one or more contexts (SeeRCU::Context
) and bind it to a RCU::Event object. All key events will then be directed to the current context.- $ctx = connect RCU::Event "interface-desc";
-
Create a new RCU interface. The functionality is the same as RCU, with the functions added below.
- $rcu->inject(key)
-
Act as if key
key
was pressed (key
starts with "=") or released (whenkey
starts with~
). This is rarely used but is useful to "simulate" key presses. - $rcu->set_context(new_context)
-
Leave the current context (if any) and enter the
new_context
, to which all new events are directed to. - $rcu->push_context(new_context)
-
Enter the given
new_context
without leaving the current one. - $rcu->pop_context
-
Leave the current context and restore the previous context that was saved in
push_context
.
SEE ALSO
RCU.
AUTHOR
This perl extension was written by Marc Lehmann <schmorp@schmorp.de>.
Module Install Instructions
To install RCU, copy and paste the appropriate command in to your terminal.
cpanm RCU
perl -MCPAN -e shell install RCU
For more information on module installation, please visit the detailed CPAN module installation guide.