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

Provide coloured output to terminal #22

Closed
IanHopkinson opened this issue Apr 4, 2024 · 2 comments
Closed

Provide coloured output to terminal #22

IanHopkinson opened this issue Apr 4, 2024 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@IanHopkinson
Copy link
Collaborator

Writing coloured output to the Git Bash terminal on Windows using click is challenging using the builtin functions because it uses colorama which struggles with this. Pytest seems to have cracked it with code like this:
https://github.com/pytest-dev/pytest/blob/4e3dd21506a9e543c04c63ebff966a9b604d2b9e/src/_pytest/_io/terminalwriter.py#L73

@IanHopkinson
Copy link
Collaborator Author

Adding color=True might fix it:
pallets/click#2606

@IanHopkinson IanHopkinson added bug Something isn't working enhancement New feature or request labels Apr 6, 2024
@IanHopkinson
Copy link
Collaborator Author

Adding color=True does fix it.

Minimal implementation in #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant