| ... | ... | @@ -230,8 +230,6 @@ pub const File = struct { |
| 230 | 230 | /// Test whether ANSI escape codes will be treated as such. |
| 231 | 231 | pub fn supportsAnsiEscapeCodes(self: File) bool { |
| 232 | 232 | if (builtin.os.tag == .windows) { |
| 233 | | if (!os.isatty(self.handle)) return false; |
| 234 | | |
| 235 | 233 | var console_mode: os.windows.DWORD = 0; |
| 236 | 234 | if (os.windows.kernel32.GetConsoleMode(self.handle, &console_mode) != 0) { |
| 237 | 235 | if (console_mode & os.windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING != 0) return true; |