1Devel::REPL::Plugin::CoUlsoerrs(C3o)ntributed Perl DocumDeenvtealt:i:oRnEPL::Plugin::Colors(3)
2
3
4
6 Devel::REPL::Plugin::Colors - add color to return values, warnings, and
7 errors
8
10 #!/usr/bin/perl
11
12 use lib './lib';
13 use Devel::REPL;
14
15 my $repl = Devel::REPL->new;
16 $repl->load_plugin('LexEnv');
17 $repl->load_plugin('History');
18 $repl->load_plugin('Colors');
19 $repl->run;
20
22 Colors are very pretty.
23
24 This plugin causes certain prints, warns, and errors to be colored.
25 Generally the return value(s) of each line will be colored green (you
26 can override this by setting "$_REPL->normal_color" in your rcfile).
27 Warnings and compile/runtime errors will be colored with
28 "$_REPL->error_color". This plugin uses Term::ANSIColor, so consult
29 that module for valid colors. The defaults are actually 'green' and
30 'bold red'.
31
33 "Devel::REPL"
34
36 Shawn M Moore, "<sartak at gmail dot com>"
37
39 Copyright (C) 2007 by Shawn M Moore
40
41 This library is free software; you can redistribute it and/or modify it
42 under the same terms as Perl itself.
43
44
45
46perl v5.12.1 2010-05-23 Devel::REPL::Plugin::Colors(3)