Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Terminal::ANSIColor instead of Term::ANSIColor #4601

Closed
p6rt opened this issue Sep 28, 2015 · 5 comments
Closed

Use Terminal::ANSIColor instead of Term::ANSIColor #4601

p6rt opened this issue Sep 28, 2015 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 28, 2015

Migrated from rt.perl.org#126211 (status was 'resolved')

Searchable as RT126211$

@p6rt
Copy link
Author

p6rt commented Sep 28, 2015

From @skaji

As in tadzik/perl6-Term-ANSIColor@be708da23d,
Term​::ANSIColor is deprecated. So use Terminal​::ANSIColor instead.

@p6rt
Copy link
Author

p6rt commented Sep 28, 2015

From @skaji

0001-Use-Terminal-ANSIColor-instead-of-Term-ANSIColor.patch
From 0c682922b13d12f3179555efda6cd1345cb3c372 Mon Sep 17 00:00:00 2001
From: Shoichi Kaji <skaji@cpan.org>
Date: Mon, 28 Sep 2015 22:13:27 +0900
Subject: [PATCH] Use Terminal::ANSIColor instead of Term::ANSIColor

Because Term::ANSIColor is deprecated
See https://github.com/tadzik/perl6-Term-ANSIColor/commit/be708da23d
---
 lib/Pod/To/Text.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Pod/To/Text.pm b/lib/Pod/To/Text.pm
index 8a20605..118466a 100644
--- a/lib/Pod/To/Text.pm
+++ b/lib/Pod/To/Text.pm
@@ -6,7 +6,7 @@ method render($pod) {
 
 my &colored;
 if %*ENV<POD_TO_TEXT_ANSI> {
-    &colored = try { EVAL q{ use Term::ANSIColor; &colored } } // sub ($text, $color) { $text }
+    &colored = try { EVAL q{ use Terminal::ANSIColor; &colored } } // sub ($text, $color) { $text }
 } else {
     &colored = sub ($text, $color) { $text }
 }
-- 
2.5.3

@p6rt
Copy link
Author

p6rt commented Oct 9, 2015

From @usev6

Patch was applied with commit cd8ce4e639.

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 9, 2015

From @usev6

Patch was applied with commit cd8ce4e639.

I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented Oct 9, 2015

@usev6 - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Oct 9, 2015
@p6rt p6rt added the patch label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant