You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've initially attempted to integrate atty/termcolor into rustc at rust-lang/rust#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:
The MSYS terminal appears to create pipes with the name `msys-` but *don't*
contain `-pty`, so this changes the `||` logic to `&&` to ensure that the logic
here doesn't fire for MSYS terminals where piping is used to erroneously
diagnose a stdio stream as a tty.
Closessoftprops#23
I've initially attempted to integrate atty/termcolor into rustc at rust-lang/rust#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&&
?The text was updated successfully, but these errors were encountered: