-
Notifications
You must be signed in to change notification settings - Fork 81
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
Can't see colors in journalctl #116
Comments
I'm not positive on what a TTY is, but I'm pretty sure it's just when you're using an interactive terminal, and I think this library automatically disables coloring when you're not in a TTY. I set up CI for this project earlier and was experiencing a similar issue - could you try setting I'm in the middle of getting all of the issues in this repository checked at, if this isn't relevant to you anymore just let me know so I can get it closed up. |
I am working with Linux daemons which output stdout to journalctl.
I can see colors in C++ sample but not in Rust Sample with Colored 2.0.0
Not working sample
Working Sample
Service files
Observe output
journalctl -u test_cpp.service -fo cat
journalctl -u test_rust.service -fo cat
Output
![image](https://user-images.githubusercontent.com/57316600/189823930-fbacec51-270d-49c9-bcbf-35b7ede7bc71.png)
![image](https://user-images.githubusercontent.com/57316600/189823982-4fad9744-78f2-41af-8883-a89a669f0bec.png)
But when running
![image](https://user-images.githubusercontent.com/57316600/189824462-caeb0b06-677d-44c1-aef2-2136a6f51b0d.png)
/home/phantom-il-alex/development/color_test/target/debug/color_test
as is, the colors are shown
Thanks!
The text was updated successfully, but these errors were encountered: