authorgravatar for dhdlstjtr@gmail.comYeonJiKun <dhdlstjtr@gmail.com> 2022-05-13 12:23:05+09:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-05-17 14:22:10+03:00
logf3517a1aa6058e9b09d57e81ecc81f27f086d163
treeb511076d2d0a2086b6d178d9c44474256852256d
parentdf74c45fa74f1247f434064d25b54998fe144906

zig test: Add proper detection for Windows console


1 files changed, 2 insertions(+), 1 deletions(-)

lib/test_runner.zig+2-1
......@@ -37,7 +37,8 @@ pub fn main() void {
3737 .dont_print_on_dumb = true,
3838 };
3939 const root_node = progress.start("Test", test_fn_list.len);
40 const have_tty = progress.terminal != null and progress.supports_ansi_escape_codes;
40 const have_tty = progress.terminal != null and
41 (progress.supports_ansi_escape_codes or progress.is_windows_terminal);
4142
4243 var async_frame_buffer: []align(std.Target.stack_align) u8 = undefined;
4344 // TODO this is on the next line (using `undefined` above) because otherwise zig incorrectly