-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Description
An obvious fix would be something like this:
diff --git a/dist.ini b/dist.ini
index aede7ddf..336c5a88 100644
--- a/dist.ini
+++ b/dist.ini
@@ -52,6 +52,7 @@ DateTime = 0.44 ; CLDR fixes, used by AutoVersion and NextRelease
[OSPrereqs / MSWin32]
DateTime::TimeZone = 1.92
+Win32::Console::ANSI = 0
[RemovePrereqs]
remove = Config ; why isn't this indexed?? -- rjbs, 2011-02-11
diff --git a/lib/Dist/Zilla/Chrome/Term.pm b/lib/Dist/Zilla/Chrome/Term.pm
index d2661f11..9613572f 100644
--- a/lib/Dist/Zilla/Chrome/Term.pm
+++ b/lib/Dist/Zilla/Chrome/Term.pm
@@ -85,6 +85,7 @@ sub _build_logger {
$stdout->add_callback(sub {
require Term::ANSIColor;
+ require Win32::Console::ANSI if $^O eq 'MSWin32';
my $message = {@_}->{message};
return $message unless $message =~ s/\A\[([^\]]+)] //;However, because dzil expects a 256-color terminal and Win32::Console::ANSI emulates a 16-color terminal, it doesn't look as intended:

Maybe colouring should be completely disabled under Windows?
Metadata
Metadata
Assignees
Labels
No labels
