commit f3517a1aa6058e9b09d57e81ecc81f27f086d163 (tree)
parent df74c45fa74f1247f434064d25b54998fe144906
Author: YeonJiKun <dhdlstjtr@gmail.com>
Date: Fri, 13 May 2022 12:23:05 +0900
zig test: Add proper detection for Windows console
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/test_runner.zig b/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