Term::Highlight - perl module to highlight regexp patterns on terminals
term-debug tagtypes are supported.
If tagtype is
term then boundaries of found patterns will be enclosed in terminal color escape sequence tags,
if tagtype is
term-debug then they will be marked by symbolic sequences.
Term::Highlight is perl module aimed to support highlighting of patterns on color terminals. It supports 256 color terminals and older 8 color terminals.
expects reference to array of references to arrays of structure [ $pattern, $fg, $bold, $bg ]. Load patterns to be processed.
clear loaded patterns.
expects array of references to strings.
Loads patterns to be processed.
This is just a convenient version of
Example of array to be loaded: [ "-46",
expects reference to string. Make substitution of color tags inside the string. Returns count of found matches.
A. Radkov, <firstname.lastname@example.org>
Copyright (C) 2008 by A. Radkov.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.