Skip Menu |

This queue is for tickets about the colorize-stderr CPAN distribution.

Report information
The Basics
Id: 132184
Status: open
Priority: 0/
Queue: colorize-stderr

People
Owner: Nobody in particular
Requestors: ralph.schuler [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Module colorize-stderr not working in PowerShell
Date: Sat, 21 Mar 2020 07:56:37 +0100
To: bug-colorize-stderr [...] rt.cpan.org
From: Ralph Schuler <ralph.schuler [...] gmail.com>
Hi, I use your excelent module colorize-stderr. I discovered, that colorizing STDERR output is not working in PowerShell. The same code works fine in cmd.exe. Do you have any idea why? Please find attached the example source code and a screenshot. Thank you and best regards Ralph -- *Ralph Schuler* OK ISAF 2020 - *Ressort EDV/Homepage* +41 79 799 75 84 Bahnhofstrasse 95 6423 Seewen ralph.schuler@isaf2020.ch www.isaf2020.ch
Download colorize-stderr.zip
application/x-zip-compressed 512.2k

Message body not shown because it is not plain text.

On Sat, 21 Mar 2020 06:57:22 GMT, ralph.schuler@gmail.com wrote: Show quoted text
> Hi, > > I use your excelent module colorize-stderr. I discovered, that colorizing > STDERR output is not working in PowerShell. The same code works fine in > cmd.exe. Do you have any idea why? > > Please find attached the example source code and a screenshot. > > Thank you and best regards > Ralph >
I thought I tried it once and it worked on PowerShell as long as you use the console version of PowerShell (not ISE) and you also load Win32::Console::ANSI. But just now I tried it and the ANSI escape codes are not printed but are also not interpreted. This still works on PowerShell: % perl -MWin32::Console::ANSI -MTerm::ANSIColor -E "say color('yellow'),'hi',color('reset')" so I suspect the issue *might* lie in PerlIO::via::ANSIColor, but sorry I don't have time to investigate further at the moment.
Subject: Re: [rt.cpan.org #132184] Module colorize-stderr not working in PowerShell
Date: Sat, 21 Mar 2020 16:03:28 +0100
To: bug-colorize-stderr [...] rt.cpan.org
From: Ralph Schuler <ralph.schuler [...] gmail.com>
Thank you very much. Am Sa., 21. März 2020 um 13:36 Uhr schrieb Perl Ancar via RT < bug-colorize-stderr@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=132184 > > > On Sat, 21 Mar 2020 06:57:22 GMT, ralph.schuler@gmail.com wrote:
> > Hi, > > > > I use your excelent module colorize-stderr. I discovered, that colorizing > > STDERR output is not working in PowerShell. The same code works fine in > > cmd.exe. Do you have any idea why? > > > > Please find attached the example source code and a screenshot. > > > > Thank you and best regards > > Ralph > >
> > I thought I tried it once and it worked on PowerShell as long as you use > the console version of PowerShell (not ISE) and you also load > Win32::Console::ANSI. But just now I tried it and the ANSI escape codes are > not printed but are also not interpreted. > > This still works on PowerShell: > > % perl -MWin32::Console::ANSI -MTerm::ANSIColor -E "say > color('yellow'),'hi',color('reset')" > > so I suspect the issue *might* lie in PerlIO::via::ANSIColor, but sorry I > don't have time to investigate further at the moment. > > >
-- *Ralph Schuler* OK ISAF 2020 - *Ressort EDV/Homepage* +41 79 799 75 84 Bahnhofstrasse 95 6423 Seewen ralph.schuler@isaf2020.ch www.isaf2020.ch