debian man page for term::filter::callback

Query: term::filter::callback

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Term::Filter::Callback(3pm)				User Contributed Perl Documentation			       Term::Filter::Callback(3pm)

NAME
Term::Filter::Callback - Simple callback-based wrapper for Term::Filter
VERSION
version 0.03
SYNOPSIS
use Term::Filter::Callback; my $term = Term::Filter::Callback->new( callbacks => { munge_input => sub { my $self = shift; my ($got) = @_; $got =~ s/ce/E- Elbereth /g; $got; }, munge_output => sub { my $self = shift; my ($got) = @_; $got =~ s/(Elbereth)/e[35m$1e[m/g; $got; }, }, ); $term->run('nethack');
DESCRIPTION
This module provides a callback-based API to Term::Filter. The desired callbacks can just be passed into the constructor of this class, rather than requiring a new class to be manually defined. This class consumes the Term::Filter role, so the rest of the documentation in that module applies here.
ATTRIBUTES
callbacks A hashref of callbacks for Term::Filter. The keys are callback names and the values are coderefs to call for those callbacks.
AUTHOR
Jesse Luehrs <doy at tozt dot net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Jesse Luehrs. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-03-08 Term::Filter::Callback(3pm)
Related Man Pages
mail::spf::term5.18(3) - mojave
courier::filter::logger::syslog(3pm) - debian
courier::filter::module::blankbody(3pm) - debian
sru::response::term(3pm) - debian
term::filter(3pm) - debian
Similar Topics in the Unix Linux Community
X-Term for Windows
Reverse video from within .profile
expendable 0.0.8 (Default branch)
Repeat the Term CEP Eleven Times and Click Your Heals
Combine 2 line with space issue