-
Notifications
You must be signed in to change notification settings - Fork 96
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
request to support CLI_COLORs :-) #217
Comments
Thanks for pinging me :) I have a PR for Rust which would make this work: rust-lang/rust#27867
Maybe this has something to do with #159? |
Hmm .. I disabled autoscrolling, but still don't get colored output. If I understand noseglid correctly CLI_COLORs are currently not supported - so even if colored output would be improved on the rust side by rust-lang/rust#27867 atom-build could not deal with it right now (if I understand correctly). NOTE that cargo already supports colored output. You can try
|
They are definitely supported (on Linux)! I'm using it with cmake for example. Have you tried something simple like |
This is strange - but you are right, your python code produces colored output. It seems to be some strange cargo bug - if I write colored output of cargo into a file and |
Can you try only rustc with the cargo handles colors a little differently from rustc afaik. |
@colin-kiegel The reason is probably that cargo (like most applications) determine if there is a tty connected to stdout. If it is not (which is the case when piping data into |
I had a similar issue with RSpec. You should call it |
Could an option, similar to that for --verbose, be added so cargo output is forced to emit the colors? |
That should be opened on the build cargo repo On tors 11 aug. 2016 at 06:47, Paul LaCrosse notifications@github.com
|
The PR for build-cargo: AtomBuild/atom-build-cargo#57 |
Some build tools support colored output like rust
cargo
. I gave this a try with atom-build, but the color seems to be ignored by atom-build.@jhasse FYI
What I tried is the following:
test
totest --color always -- --color always
. The duplicate flag is necessary due to Disabling colored output requires convolutedcargo test --color=never -- --color=never
incantation rust-lang/cargo#1983. But in atom-build these color codes are stripped somewhere along the way to the output panel. I only get unformatted text as usual.cargo test --color always -- --color always | less
(color codes visible when piped to| less
).The text was updated successfully, but these errors were encountered: