Yarn help changes text color in powershell

bug in yarn 0.20.3 (installed through chocolatey)

What is the current behavior?
when running [yarn help] the help is displayed but the textcolor is changed and left to a dark color, so nothing can be read afterwards.

If the current behavior is a bug, please provide the steps to reproduce.
Just run yarn help in powershell (I also have poshgit installed in case that makes a difference)

What is the expected behavior?
The text color should be reset to whatever it was before yarn help was called

Please mention your node.js, yarn and operating system version.
Node 7.5.0
Yarn 0.20.3

As a work around I can run [Console]::ResetColor() in powershell to reset the text

Author: Fantashit

3 thoughts on “Yarn help changes text color in powershell

  1. I would like to submit a PR to workaround this problem by simply reset colors after bold usage.
    Would this be an options until ms fixed the escape codes?

    Until then using legacy console mode fixes the problem too, but then all new features (like copy&paste) are disabled. 😞

Comments are closed.