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

No color on cargo messages #136

Closed
pickfire opened this issue Jul 24, 2020 · 3 comments
Closed

No color on cargo messages #136

pickfire opened this issue Jul 24, 2020 · 3 comments
Labels

Comments

@pickfire
Copy link

pickfire commented Jul 24, 2020

    Updating registry 'https://github.com/rust-lang/crates.io-index'

does not have color. It would be good to show the cargo version with color on an interactive terminal.

@nabijaczleweli
Copy link
Owner

Following what that funxion has already been through, I don't think there's much point in mimicking even more parts of cargo (isatty(), presumably, but then what does that make of Win32, also --color=always,auto,never, &c., &c.), especially for something as trite as colours in an insignificant part of the output. If cargo supported update-registry (which it won't: rust-lang/cargo#5961), I'd just fork+exec that, but otherwise meh.

@pickfire
Copy link
Author

pickfire commented Jul 24, 2020

Is it possible to pull cargo as a library or some sort to just run cargo's code directly? Or maybe just force --color=always when the user is in an interactive terminal?

@nabijaczleweli
Copy link
Owner

nabijaczleweli commented Jul 24, 2020

There's a reason I'm not using libcargo (it's a fucking behemoth, and as stable as Rust (not very)). I'm not going to send rogue escapes to teletypes that don't understand them (which is most).

I don't really see why this matters, anyway?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants