-
-
Notifications
You must be signed in to change notification settings - Fork 652
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
v3: color output doesn't work properly on Windows #343
Comments
Just got hit by that. Command help hints that it should be possible to disable colored output, there is a flag to enable it, but it is enabled by default.
Either |
an alternative is to use |
That seems to have no effect on windows (v3.3.0)
|
Closes #459 Fixes #480 Ref #343 Ref fatih/color#137
Hi everybody, thanks for reporting this! No sure what's happening on Windows. By the screenshots seems that it's not supported on CMD. Did anyone try on PowerShell?
Anyway, just added support for |
I am on PowerShell Core (Run: pwsh.exe)
Testing:
|
I've investigated a bit this issue and found out some things. e.g.
produces this: This line is the "culprit": Line 58 in 6c73ab8
You can easily verify that's the cause by changing that line to:
Am not sure how to best fix this issue, I don't have enough knowledge about the codebase. There's probably some strange thing going on with stdout and stderr. 😕 Hope this helps. |
I've just tried the sample on Windows 11 with Task v3.26 on both If anyone is still having this problem or thinks this isn't fixed, please open a new issue with steps to reproduce it. |
Taskfile.yml:
Color output doesn't work in cmd.exe and powershell.exe:
Works well in ConEmu and Terminal:
With
version: '2'
, it works well in ConEmu and Terminal (with no color), but still fails in cmd.exe and powershell.exe:Maybe mattn's colorable is a good solution?
The text was updated successfully, but these errors were encountered: