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)NAMETerm::Filter::Callback - Simple callback-based wrapper for Term::FilterVERSIONversion 0.03SYNOPSISuse 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');DESCRIPTIONThis 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.ATTRIBUTEScallbacks A hashref of callbacks for Term::Filter. The keys are callback names and the values are coderefs to call for those callbacks.AUTHORJesse Luehrs <doy at tozt dot net>COPYRIGHT AND LICENSEThis 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)
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 |