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

color not working on Windows PowerShell #12

Open
superbrothers opened this issue Oct 22, 2020 · 5 comments
Open

color not working on Windows PowerShell #12

superbrothers opened this issue Oct 22, 2020 · 5 comments

Comments

@superbrothers
Copy link
Member

Note: this issue was imported from https://github.com/wercker/stern/issues/69, but it was originally created by tw0517tw...

It looks
default

@superbrothers
Copy link
Member Author

Note: this comment was imported, but it was originally made by teddyber...

any idea when this can be fixed? i'm stuck on a windows box these days and i miss those colors :'(

@superbrothers
Copy link
Member Author

Note: this comment was imported, but it was originally made by tw0517tw...

@teddyber I've changed my console to the newer and open sourced PowerShell https://github.com/PowerShell/PowerShell and found it supports the color codes used in stern. maybe you can give it a try?

@superbrothers
Copy link
Member Author

Note: this comment was imported, but it was originally made by teddyber...

thanks for the tip but unfortunately, it didn't work. in the meantime i installed a linux distro through WSL and i have a colored stern :-)

@superbrothers
Copy link
Member Author

Note: this comment was imported, but it was originally made by tw0517tw...

https://github.com/microsoft/terminal
maybe my color is from using new Windows Terminal

@superbrothers
Copy link
Member Author

Note: this comment was imported, but it was originally made by derekrprice...

@tw0517tw I chose to enable ANSI color for PowerShell in my registry, per this SO answer, which fixed this problem for me. Per the same answer, it might be possible to fix it in the Stern code too, if the GO implementation supports the Windows API call.

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

No branches or pull requests

1 participant