Skip to content

Commit f5e2a9e

Browse files
committed
Enable broken color in MSYS2 shells
Signed-off-by: 二手掉包工程师 <rustin.liu@gmail.com>
1 parent f7579b7 commit f5e2a9e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/utils/tty.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ fn isatty(fd: libc::c_int) -> bool {
2828
#[inline]
2929
#[cfg(windows)]
3030
fn isatty(fd: winapi::shared::minwindef::DWORD) -> bool {
31-
if std::env::var("MSYSTEM").is_ok() {
32-
// FIXME: No color is better than broken color codes in MSYS shells
33-
// https://github.com/rust-lang/rustup/issues/2292
34-
return false;
35-
}
3631
use winapi::um::{consoleapi::GetConsoleMode, processenv::GetStdHandle};
3732
unsafe {
3833
let handle = GetStdHandle(fd);

0 commit comments

Comments
 (0)