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

Apply color to STDERR instead of STDOUT on Win32 #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mjcarman
Copy link

Output wasn't colored on Win32 because the colors were being applied to STDOUT but the text to color (especially failures) appears on STDERR.

Output wasn't colored on Win32 because the colors were being applied to STDOUT but the text to color (especially failures) appears on STDERR.
rivy added a commit to rivy/perl.Test-Harness that referenced this pull request Sep 11, 2016
+ rationale: using Win32::Console::ANSI simplifies the code and improves Win32 outputs

- simplified usage ~ Win32::Console::ANSI is fire-and-forget
  - once loaded, use Term::ANSIColor without regard for platform
- fixes incorrect color 'reset' behavior
  - Win32::Color::ANSI resets correctly to the prior default color attribute set
  - bug due to incorrect assumption that LIGHTGRAY on BLACK are always the default color attributes
- fixes [GH#26](Perl-Toolchain-Gang#26)
  - Win32::Console::ANSI works for all output (no tie to a specific output handle)
  - [PR#34](Perl-Toolchain-Gang#34) is no longer needed
@karenetheridge
Copy link
Member

This change looks good to me. Let's merge it!

Leont pushed a commit that referenced this pull request Jul 23, 2017
+ rationale: using Win32::Console::ANSI simplifies the code and improves Win32 outputs

- simplified usage ~ Win32::Console::ANSI is fire-and-forget
  - once loaded, use Term::ANSIColor without regard for platform
- fixes incorrect color 'reset' behavior
  - Win32::Color::ANSI resets correctly to the prior default color attribute set
  - bug due to incorrect assumption that LIGHTGRAY on BLACK are always the default color attributes
- fixes [GH#26](#26)
  - Win32::Console::ANSI works for all output (no tie to a specific output handle)
  - [PR#34](#34) is no longer needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants