Devel::REPL::Plugin::Colors - add color to return values, warnings, and errors


Devel-REPL documentation  | view source Contained in the Devel-REPL distribution.

Index


NAME

Top

Devel::REPL::Plugin::Colors - add color to return values, warnings, and errors

SYNOPSIS

Top

    #!/usr/bin/perl 

    use lib './lib';
    use Devel::REPL;

    my $repl = Devel::REPL->new;
    $repl->load_plugin('LexEnv');
    $repl->load_plugin('History');
    $repl->load_plugin('Colors');
    $repl->run;

DESCRIPTION

Top

Colors are very pretty.

This plugin causes certain prints, warns, and errors to be colored. Generally the return value(s) of each line will be colored green (you can override this by setting $_REPL->normal_color in your rcfile). Warnings and compile/runtime errors will be colored with $_REPL->error_color. This plugin uses Term::ANSIColor, so consult that module for valid colors. The defaults are actually 'green' and 'bold red'.

SEE ALSO

Top

Devel::REPL

AUTHOR

Top

Shawn M Moore, <sartak at gmail dot com>

COPYRIGHT AND LICENSE

Top


Devel-REPL documentation  | view source Contained in the Devel-REPL distribution.