I've initially attempted to integrate atty/termcolor into rustc at https://github.com/rust-lang/rust/pull/48588 but unfortunately it looks like there may be a misdiagnosis of terminal colors! It looks like in the MSYS terminal/shell pipes are classified as ttys, for example this program:
I've initially attempted to integrate atty/termcolor into rustc at https://github.com/rust-lang/rust/pull/48588 but unfortunately it looks like there may be a misdiagnosis of terminal colors! It looks like in the MSYS terminal/shell pipes are classified as ttys, for example this program:
Will print:
when run in MSYS.
The same program for Unix, however, prints:
With some debugging it looks like the filename reported for the MSYS pipes are along the lines of:
which looks to trigger this logic. Was the
||
there supposed to be&&
?