Subject: | Making colorization work correctly on Windows. |
Attached patches specify (hopefully the correct) git repository to
branch off of, and load a module that allows Term::ANSIColor to work
within Win32 console (command prompt) windows.
Subject: | 0002-Add-repository-line-to-Makefile.PL.patch |
From 839eca73406a4df730f218231f5c810262a5886b Mon Sep 17 00:00:00 2001
From: Curtis Jewell <perl@csjewell.fastmail.us>
Date: Thu, 15 Jul 2010 18:07:06 -0600
Subject: [PATCH 2/2] Add 'repository' line to Makefile.PL.
This also adds it to the META.yml and to search.cpan.org -
which makes for a lower barrier to entry.
---
Makefile.PL | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Makefile.PL b/Makefile.PL
index 4dda752..d5dc95c 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -71,6 +71,8 @@ feature 'Refresh plugin - automatically reload libraries with Module::Refresh',
test_requires 'Test::More';
+repository 'git://git.shadowcat.co.uk/p5sagit/Devel-REPL.git';
+
auto_install;
WriteAll;
--
1.6.5.1.1367.gcd48
Subject: | 0001-Add-module-that-colorizes-Win32-console-windows-when.patch |
From 042df9e7103ce566bc3de74e14cc94ef15dec7ef Mon Sep 17 00:00:00 2001
From: Curtis Jewell <perl@csjewell.fastmail.us>
Date: Thu, 15 Jul 2010 18:05:02 -0600
Subject: [PATCH 1/2] Add module that colorizes Win32 console windows when needed.
---
Makefile.PL | 1 +
lib/Devel/REPL/Plugin/Colors.pm | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Makefile.PL b/Makefile.PL
index e8837ba..4dda752 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -22,6 +22,7 @@ requires 'File::HomeDir';
requires 'Task::Weaken';
requires 'B::Concise';
requires 'Term::ANSIColor';
+requires 'Win32::Console::ANSI' if $^O =~ /Win32/;
requires 'Devel::Peek';
feature 'Completion plugin - extensible tab completion',
diff --git a/lib/Devel/REPL/Plugin/Colors.pm b/lib/Devel/REPL/Plugin/Colors.pm
index e3d0725..3a1ade3 100644
--- a/lib/Devel/REPL/Plugin/Colors.pm
+++ b/lib/Devel/REPL/Plugin/Colors.pm
@@ -1,6 +1,7 @@
package Devel::REPL::Plugin::Colors;
use Devel::REPL::Plugin;
+require Win32::Console::ANSI if $^O =~ /Win32/;
use Term::ANSIColor;
use namespace::clean -except => [ 'meta' ];
--
1.6.5.1.1367.gcd48