Colorized text vs. background colors

When I've been hacking around with Rust on Windows, I've been finding that it gives colorized text on the console. Which is fine, except that I've seen that text include white, yellow, blue, and black... at least one of which will be difficult to read against any of the terminal-window background colors I commonly use.

I presume there's a standard solution...?

You can use cargo --color=never ....

Or in %USERPROFILE%\.cargo\config.toml,

[term]
color = "never"

See also.


(It uses "default foreground color", not white or black.)

That'll do it; thanks.

I do still wonder what background the folks who picked this color set thought we were going to use, though. Colorization of console messages can be a Fine Thing, sometimes...

Dark background, evidently.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.