diff --git a/lib/std/fs/file.zig b/lib/std/fs/file.zig index 0a2fbf74ad23ff49a9cef3c1d3c08d3f6dd2444a..7b954399d86286018ecf1a1395a13c1f63c23280 100644 --- a/lib/std/fs/file.zig +++ b/lib/std/fs/file.zig @@ -230,8 +230,6 @@ pub const File = struct { /// Test whether ANSI escape codes will be treated as such. pub fn supportsAnsiEscapeCodes(self: File) bool { if (builtin.os.tag == .windows) { - if (!os.isatty(self.handle)) return false; - var console_mode: os.windows.DWORD = 0; if (os.windows.kernel32.GetConsoleMode(self.handle, &console_mode) != 0) { if (console_mode & os.windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING != 0) return true;