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

fix an issue with the colored log in Windows shell. #82

Merged
merged 1 commit into from
Sep 19, 2020

Conversation

kemokemo
Copy link
Contributor

@kemokemo kemokemo commented Jul 5, 2020

Issue

When running muffet with Windows PowerShell or Command prompt, the colored log portion does not display properly.

PowerShell on Windows 10 (1909)
windows-powershell

Command prompt on Windows 10 (1909)
windows-command_prompt

Solution

I fixed it by using go-colorable to replace os.Stdout. Because this library returns os.Stdout as io.Writer for non-Windows systems, I think that this fix have no effect on the operation of other OSes.

fixed results

PowerShell on Windows 10 (1909)
windows-powershell-fixed

Command prompt on Windows 10 (1909)
windows-command_prompt-fixed

@raviqqe raviqqe merged commit da7a005 into raviqqe:master Sep 19, 2020
@raviqqe
Copy link
Owner

raviqqe commented Sep 19, 2020

Thank you for your contribution! Sorry for delay!

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