summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-06-27 00:38:10 -0400
committerJesse Luehrs <doy@tozt.net>2013-06-27 00:38:10 -0400
commit2d3c835b5cfa72d489377be812e1918dd44f807f (patch)
tree3a05d49e18a18aeba9bcb6cb4cf59a71104012ae
parent3b49719a7b1e0f384cb85dd8d9a2c7e0f1a483a9 (diff)
downloadreply-2d3c835b5cfa72d489377be812e1918dd44f807f.tar.gz
reply-2d3c835b5cfa72d489377be812e1918dd44f807f.zip
support color on windows (aero)
-rw-r--r--Changes1
-rw-r--r--dist.ini5
-rw-r--r--lib/Reply/Plugin/Colors.pm6
3 files changed, 12 insertions, 0 deletions
diff --git a/Changes b/Changes
index d88e21e..98e733f 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
Revision history for Reply
{{$NEXT}}
+ - support color on windows (aero)
0.16 2013-06-26
- bump the Getopt::Long dep, for installing on older perls
diff --git a/dist.ini b/dist.ini
index 46aa79f..810cec4 100644
--- a/dist.ini
+++ b/dist.ini
@@ -26,6 +26,7 @@ skip = ^Class::Refresh$
skip = ^Data::Dump$
skip = ^Data::Printer$
skip = ^Proc::InvokeEditor$
+skip = ^Win32::Console::ANSI$
[Prereqs / RuntimeRecommends]
App::Nopaste = 0
@@ -34,3 +35,7 @@ Data::Dump = 0
Data::Printer = 0
Proc::InvokeEditor = 0
Term::ReadLine::Gnu = 0
+
+; XXX it'd be nice if we could make this recommended instead of required
+[OSPrereqs / MSWin32]
+Win32::Console::ANSI = 0
diff --git a/lib/Reply/Plugin/Colors.pm b/lib/Reply/Plugin/Colors.pm
index 6a7a5e0..aa7e1ef 100644
--- a/lib/Reply/Plugin/Colors.pm
+++ b/lib/Reply/Plugin/Colors.pm
@@ -6,6 +6,12 @@ use warnings;
use base 'Reply::Plugin';
use Term::ANSIColor;
+BEGIN {
+ if ($^O eq 'MSWin32') {
+ require Win32::Console::ANSI;
+ Win32::Console::ANSI->import;
+ }
+}
=head1 SYNOPSIS