-
Notifications
You must be signed in to change notification settings - Fork 495
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
On Python3, color codes are printed instead of colors #182
Comments
JamesConlan96
added a commit
to JamesConlan96/pidcat
that referenced
this issue
Jan 17, 2023
Yup, ran into this as well. I guess not a lot of people use this script anymore? Thanks for pointing out the fix! |
Got the same error, thanks for sharing the workaround and the fix, hopefully gets merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm running on Bash 5.1.16 and have the
TERM
variables set appropriately:If I run pidcat with python3, I get output like this:
but if I run with python2, then I get colorized output as expected.
If I delete the
.encode(utf-8)
from the final print statement, then it works as expected on both Python2 and Python3, but I suspect this might cause problems on some systems if locale isn'tutf-8
.The text was updated successfully, but these errors were encountered: