-
Notifications
You must be signed in to change notification settings - Fork 11
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
Broken support of Windows Powershell #79
Comments
Thank you for the report. This should be fixed on main 🤞🏻. Could you please check if it works in your terminal? |
I think my issue is related. I am using the default Windows cmd on Windows 7. Latest version on pypi shows weird control codes like rich.diagnose is nice and colorful
py -c "import sys; print(sys.getwindowsversion())"
py -c "import sys; print(sys.version)"
|
Thank you @Dobatymo. This behavior is expected with CMD on older versions of Windows including Windows 7. The rich-argparse version on GitHub main removes colors on old Windows versions that don't support ANSI escape sequences. We may be able to improve this situation but I don't have a Windows 7 machine handy to test.
|
Thank you @Dobatymo this is very helpful. One last test is to replace the |
@hamdanal Using |
Thank you @Dobatymo and @HexPandaa. The newest version on main fixed support for CMD and PowerShell. On Windows 10 and newer, it works out of the box. On older versions of windows, you'll need to call |
Hello and thank you for your great module!
I'm encountering a strange problem when using the module in a native Windows Powershell window.
Here's the sample code I'm using:
Here's the output in a native Windows Powershell window, the output from
![ps](https://private-user-images.githubusercontent.com/47880094/254886624-8762761e-f95a-4ec7-9415-f255c803657a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0NTgwODMsIm5iZiI6MTcyMDQ1Nzc4MywicGF0aCI6Ii80Nzg4MDA5NC8yNTQ4ODY2MjQtODc2Mjc2MWUtZjk1YS00ZWM3LTk0MTUtZjI1NWM4MDM2NTdhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDE2NTYyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRhODZkZDQxZTVjM2NjMTY0OWFjZTE1ZDZjMjliNjI2OTZkNmM5Mzc0ZmM2ZWQ1NWRiZjRhNzgwNjVmZTEzNjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jCuQreyj-CvwsV6p4OstE6qJa19G5iA_Egmj1dcvL4Y)
rich_argparse
is broken, however the output fromrich
is ok.The output from Windows Terminal shows that both
![wt](https://private-user-images.githubusercontent.com/47880094/254887187-02a2bd29-c21c-42d7-93fb-30387118b69f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0NTgwODMsIm5iZiI6MTcyMDQ1Nzc4MywicGF0aCI6Ii80Nzg4MDA5NC8yNTQ4ODcxODctMDJhMmJkMjktYzIxYy00MmQ3LTkzZmItMzAzODcxMThiNjlmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDE2NTYyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg1YjYzMjBkNWFiMWI3N2YxZGZjM2ExMjJlOGZlOTU4OWEyZDMwZTc3NzIyZjQyN2RjMjQwMmMwNDY5N2IxZjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PcxBOWhTrE1A6fEwWhUsO-nilXwTxv9cWDR7dg-cU8A)
rich_argparse
andrich
work.The text was updated successfully, but these errors were encountered: