Commit f3517a1aa6

YeonJiKun <dhdlstjtr@gmail.com>
2022-05-13 05:23:05
zig test: Add proper detection for Windows console
1 parent df74c45
Changed files (1)
lib/test_runner.zig
@@ -37,7 +37,8 @@ pub fn main() void {
         .dont_print_on_dumb = true,
     };
     const root_node = progress.start("Test", test_fn_list.len);
-    const have_tty = progress.terminal != null and progress.supports_ansi_escape_codes;
+    const have_tty = progress.terminal != null and
+        (progress.supports_ansi_escape_codes or progress.is_windows_terminal);
 
     var async_frame_buffer: []align(std.Target.stack_align) u8 = undefined;
     // TODO this is on the next line (using `undefined` above) because otherwise zig incorrectly